Symfonyで認証を回避され任意のユーザーになりすまされる脆弱性
Summary
Symfonyの証明書認証(X.509)で、CNに細工を加えた証明書によりほかのユーザー(特権ユーザーを含む)になりすませる脆弱性です。対象はSymfony 5.4.56未満、6.4.50未満、7.4.23未満、8.1.11未満です。修正版は5.4.56、6.4.50、7.4.23、8.1.11で、利用中の版を修正版に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Symfonyの証明書認証(X.509)で、CNに細工を加えた証明書によりほかのユーザー(特権ユーザーを含む)になりすませる脆弱性です。対象はSymfony 5.4.56未満、6.4.50未満、7.4.23未満、8.1.11未満です。修正版は5.4.56、6.4.50、7.4.23、8.1.11で、利用中の版を修正版に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| sensiolabssymfony |
< 5.4.56→ 5.4.56 ≥ 6.0.0, < 6.4.50→ 6.4.50 ≥ 7.0.0, < 7.4.23→ 7.4.23 ≥ 8.0.0, < 8.1.11→ 8.1.11 |
5.4.56 6.4.50 7.4.23 8.1.11 |
| composersymfony/security-http |
< 8.1.11→ 8.1.11 |
8.1.11 |
| composersymfony/symfony |
< 8.1.11→ 8.1.11 |
8.1.11 |
| Packagistsymfony/security-http |
≥ 8.0.0, < 8.1.11→ 8.1.11 |
8.1.11 |
| Packagistsymfony/symfony |
≥ 8.0.0, < 8.1.11→ 8.1.11 |
8.1.11 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-118513 symfony Fix available
- Ubuntu UBUNTU-CVE-2026-118513 symfony No fixed version in this record
Original description The description as published by the source.
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:
'#(?:^|[,/])\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_N…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- DSA DSA-6617-1
- package github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web packagist.org
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web symfony.com
- web github.com