GHSA-5w3m-mfwg-9f8r / CVE-2026-118513
DATABASE
脆弱性データベース
日々
Photo: Rob Wingate / Unsplash
WATRIXは外部からの無料診断に加え、個別の影響調査、侵害されたサイトの復旧・再発防止のご相談を承ります。
LOADING DATABASE
脆弱性情報を読み込んでいます
DATABASE
脆弱性データベース
日々
Photo: Rob Wingate / Unsplash
WATRIXは外部からの無料診断に加え、個別の影響調査、侵害されたサイトの復旧・再発防止のご相談を承ります。
LOADING DATABASE
脆弱性情報を読み込んでいます
ADVISORY
脆弱性の
影響範囲、修正情報、出典と履歴を確認できます。
Photo: Rob Wingate / Unsplash
LOADING DATABASE
影響範囲と修正情報を読み込んでいます
© 2026 WATRIX合同会社. All rights reserved.
ADVISORY
掲載中修正版ありsymfony/security-http / symfony/symfony
Photo: Rob Wingate / Unsplash
GHSA-5w3m-mfwg-9f8r / CVE-2026-118513
この診断ルールは CVE-2026-118513・CVE-2026-118515・CVE-2026-121971・GHSA-5w3m-mfwg-9f8r・GHSA-gq53-v8w2-gjhj・GHSA-h38r-xrmh-cwhr をまとめて扱います。個別の影響範囲と修正版は、それぞれの公式出典でも確認してください。
情報整理:WATRIX合同会社。影響の確定や侵害の有無は、実際の版・設定・ログ等を確認して判断します。
診断へ追加した時点の記録です。現在の照合可否は製品・バージョンの取得状況と、上記の確認範囲によります。
対応追加日:
Symfonyの確認案内を追加WATRIX GUIDE
Symfonyの
Symfony の版は外からは確定できません。2026年12月1日に、脆弱性3件(X509 クライアント証明書認証で証明書の名前欄を悪用して別のユーザーになりすませる: GHSA-5w3m-mfwg-9f8r、ScopingHttpClient が既定の認証情報を別のサイトへ送ってしまう: GHSA-gq53-v8w2-gjhj、Serializer がリクエストの内容から UploadedFile を作り、サーバ上の任意のファイルを指定できてしまう: GHSA-h38r-xrmh-cwhr)が公表されました。いずれも特定の機能を使っている場合に影響します。影響を受けるのは symfony/symfony 等の 5.4.56 より前、6.x は 6.4.50 より前、7.x は 7.4.23 より前、8.x は 8.1.11 より前です。危ないかもしれないので、composer.lock で symfony/symfony(symfony/security-http、symfony/http-client、symfony/serializer)の版を調べてください。
WATRIXが確認した関連解説です。公開元の原典とは区別して掲載しています。
日本語解説の確認:2026/12/02
無料診断で使用技術の兆候が見えた場合に、確認すべき項目を案内します。脆弱性の検出や侵害の有無を保証するものではありません。
無料診断は外から確認できる範囲が対象です。個別の調査・復旧は、状況と対応範囲を確認してご案内します。
同じCVEでも、深刻度の評価や掲載状態は出典ごとに異なる場合があります。各出典の記録を残し、片方の棄却・撤回だけで他の告知の状態を書き換えません。
この出典のCVSS:7.7
この出典のCVSS:7.7
この出典のCVSS:7.7
公開元の記載です。上のWATRIXの日本語解説と併せて、最新の情報をご確認ください。
### Description `X509Authenticator` extracts the user identifier from the Subject DN (Distinguished Name) that the web server passes in `$_SERVER['SSL_CLIENT_S_DN']`. The fix for CVE-2026-45063 anchored that extraction to an RDN (Relative Distinguished Name) boundary: ```php '#(?:^|[,/])\s*(?:emailAddress|1\.2\.840\.113549\.1\.9\.1)=([^,/@]++@[^,/]++)#' ``` `(?:^|[,/])` is not escape-aware. The expression runs against an already serialized DN, so it cannot tell an RDN separator from a separator character that occurs inside a value. Both serializations a web server can emit are affected, in opposite directions. Under RFC 2253, used by Apache and by nginx's `$ssl_client_s_dn`, a comma inside a value is escaped as `\,`, and the expression reads it as a separator regardless. A certificate whose single `CN` is `jdoe,emailAddress=admin@example.com`, issued to a holder whose genuine address is `jdoe@example.com`, serializes to: ``` CN=jdoe\,emailAddress=admin@example.com,emailAddress=jdoe@example.com ``` RFC 2253 emits RDNs in reverse order, so the poisoned `CN` is scanned before the genuine `emailAddress` attribute and the authenticator returns `admin@example.com`. RFC 2253 does not treat `/` as a separator, so it leaves it bare inside a value, while the expression treats every `/` as one. A certificate whose single `CN` is `jdoe/emailAddress=admin@example.com` therefore authenticates as `admin@example.com` as well, with no `emailAddress` attribute needed. The legacy `X509_NAME_oneline()` format, used by Apache's `LegacyDNStringFormat` and by nginx's `$ssl_client_s_dn_legacy`, is the mirror image: it escapes `/` as `\/` and leaves `,` bare. In that format, a certificate with no `emailAddress` attribute, or whose poisoned `CN` precedes it, authenticates as the smuggled address. Formats that quote a value instead of escaping its characters, such as OpenSSL's `XN_FLAG_ONELINE` (`CN = "jdoe,emailAddress=admin@example.com"`), are affected the same way. On Symfony 5.4, the deprecated `X509AuthenticationListener`, which SecurityBundle uses when `security.enable_authenticator_manager` is not set to `true` (the default on 5.4), still matched `emailAddress=` anywhere in the DN: the fix for CVE-2026-45063 did not cover it, so applications on that code path were also exposed to the original report. An attacker holding a certificate from the application's trusted CA who can influence the `CN` authenticates as an arbitrary user of the application, including a privileged one. Applications that pass a per-attribute `userKey`, such as Apache's `SSL_CLIENT_S_DN_Email`, never reach this fallback and are not affected, and neither are deployments whose CA generates or validates the subject itself rather than accepting requester-supplied values. The nginx configuration Symfony documents does reach the fallback, because nginx exposes no per-attribute equivalent. ### Resolution `X509Authenticator` and `X509AuthenticationListener` now split the DN into RDNs before looking for the attribute, instead of matching the attribute against the serialized string. They select the separator from the serialization (`X509_NAME_oneline()` always prefixes the DN with a slash, RFC 2253 never does), split on unescaped occurrences of that separator only, unescape each RDN afterwards with the rules of its format, and require the attribute to span a whole RDN. A separator inside a quoted value doesn't split the DN either. The accepted value grammar is unchanged. `X509_NAME_oneline()` as implemented by OpenSSL before 3.0, and HAProxy's `ssl_c_s_dn` fetch, write a slash inside a value without escaping it, so such a DN cannot be parsed unambiguously by anyone. Deployments using Apache's `LegacyDNStringFormat` or nginx's `$ssl_client_s_dn_legacy` with those libraries, or HAProxy's `ssl_c_s_dn`, should switch to the RFC 2253 output (`$ssl_client_s_dn`, Apache's default, `ssl_c_s_dn(,rfc2253)`) or pass a per-attribute value as the user key (`SSL_CLIENT_S_DN_Email`, `ssl_c_s_dn(emailAddress)`). One behaviour change is worth noting for reviewers: a slash-separated DN now has to start with a slash to be read as slash-separated. `CN=jdoe/emailAddress=admin@example.com` is byte for byte both the attack and a two-RDN slash-separated DN written without a leading slash, so one of the two readings had to go, and `X509_NAME_oneline()` always emits the leading slash. The patches for this issue are available [here](https://github.com/symfony/symfony/commit/0f5e26b664d17cb235ca6b6d15bf4e7ac83d25cb) for branch 5.4 and [here](https://github.com/symfony/symfony/commit/e885d7549a234530ce1d59121d4ac3ee35b1caea) for branch 6.4 (and forward-ported to 7.4, 8.1 and 8.2). From 6.4 on, the identifier attribute is configurable through `credentialUserIdentifier`, and its value grammar accepts any value rather than an address, so the custom spelling was spoofable the same way. Both arms of the pattern are anchored to a whole RDN. ### Credits Symfony would like to thank Oryam Halachmi, dahmani toumi and Stapat for reporting the issue. Symfony would also like to thank [Bruno Dias](https://github.com/cx-bruno-dias) and [João Oliveira](https://github.com/cx-joao-oliveira) from Checkmarx for their help getting a CVE assigned.
個別の対処手順は未記録です。開発元の最新の案内と、対象の製品・系列に合う修正版を確認してください。
GitHub Advisory Database
CC-BY-4.0
当サイトが取得した原本の履歴です。公開元での過去の改訂日時とは異なります。
現在の保存内容2026/12/05 0:00
Symfony: X509Authenticator and X509AuthenticationListener Read Escaped RFC 2253 Commas and Bare Slashes Inside a DN Value as RDN Boundaries
GitHub Advisory Database
CC-BY-4.0
以前の保存内容2026/12/03 0:00
Symfony: X509Authenticator and X509AuthenticationListener Read Escaped RFC 2253 Commas and Bare Slashes Inside a DN Value as RDN Boundaries
このページは公表情報を確認するためのデータです。製品を使っているだけで被害や脆弱性への該当が確定するものではありません。現在のバージョン、設定条件、開発元の更新情報を確認してください。