- Severity: HIGH
- CVE: CVE-2026-118513
- Ecosystems: composer, composer, composer, composer, composer, composer, composer, composer
- Packages: symfony/security-http, symfony/security-http, symfony/security-http, symfony/security-http, symfony/symfony, symfony/symfony, symfony/symfony, symfony/symfony
### 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_N…
Source: GitHub Security Advisories · 2026-12-01