symfony/security-http security advisory
CVE-2026-118513: X509Authenticator and X509AuthenticationListener Read Escaped RFC 2253 Commas and Bare Slashes Inside a DN Value as RDN Boundaries… in symfony/security-http
CVE-2026-118513 is a high-severity authentication bypass vulnerability in the PHP package symfony/security-http (CVSS 7.7), published 4 November 2026. It is fixed in 5.4.56, 6.4.50, 7.4.23 and 8.1.11, one per release line; earlier versions on each line are affected. Exploiting it needs a low-privilege user account.
published 2026-11-04 · updated 2026-11-06
- Affected versions
- >= 2.0.0, < 5.4.56
>= 6.0.0, < 6.4.50
>= 7.0.0, < 7.4.23
>= 8.0.0, < 8.1.11 - Fixed in
- 5.4.56, 6.4.50, 7.4.23, 8.1.11
- Newest release
- 8.2.0
- Type
- Authentication bypass
CWE-290 - Exploited in the wild
- Not on the CISA KEV list
checked 2026-11-29
Also affects
- symfony/symfony >= 2.0.0, < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11 fixed in 5.4.56, 6.4.50, 7.4.23, 8.1.11
Is your symfony/security-http version affected?
Who can exploit CVE-2026-118513
- Access: A normal, low-privilege user account in the app.
- Conditions: It only works under specific conditions the attacker does not fully control (CVSS rates the attack as high complexity).
Technical details
Weakness
Authentication bypass CWE-290
A flaw in the login or identity check lets someone be treated as logged in, or as another user, without valid credentials.
An attacker may gain access to accounts, potentially including administrators.
General description of this issue type. The advisory below covers this bug.
CVSS 4.0 breakdown
- Attack vector
- Network (remote)
- Attack complexity
- Low
- Attack requirements
- Specific conditions
- Privileges required
- Low
- User interaction
- None
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
CVSS vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
How to fix CVE-2026-118513 in symfony/security-http
- Find the installed version:
composer show symfony/security-http. If you never required it yourself,composer why symfony/security-httpshows which package pulls it in. - Update it:
composer update symfony/security-http --with-all-dependencies. You need the fixed version for your release line (5.4.56, 6.4.50, 7.4.23 and 8.1.11). - If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example
"symfony/security-http": "^8.1.11"if you can take that version), or upgrade the package that requires it. - Run
composer audit. It reads the same advisory data and should no longer list CVE-2026-118513. - Commit composer.lock and deploy it. On the server, run
composer install --no-devfrom the lock file, notcomposer update.
If you cannot upgrade yet
- Remove accounts you do not need and review what each role can do.
- Put the admin area behind a VPN, IP allow-list or extra login until you upgrade.
- If your app does not use the affected feature, note that in your audit, but still plan the upgrade.
Is your project exposed to CVE-2026-118513?
Check the one package here, or check everything your project installs at once.
- Check symfony/security-http Enter your installed version and compare it with every known symfony/security-http advisory. Check my version
-
Check your whole composer.lock
The free checker compares every locked package with the same advisory data
composer audituses. Check composer.lock
The CVE-2026-118513 advisory
Authentication bypass by spoofing in X509Authenticator and X509AuthenticationListener of Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11 allows an attacker holding a certificate from the application's trusted CA who can influence the CN to authenticate as an arbitrary user of the application, including a privileged one, following an incomplete fix for CVE-2026-45063. 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, but the regular expression used was 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. 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. RFC 2253 also does not treat / as a separator, so it leaves it bare inside a value, while the expression treats every / as one. 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. To cover both RFC 2253 and the legacy X509_NAME_oneline() format, 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, 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. The accepted value grammar is unchanged. Applications that pass a per-attribute user key (such as SSL_CLIENT_S_DN_Email) and deployments whose CA generates or validates the subject are not affected by this vulnerability.
References
- GitHub security advisory GHSA-5w3m-mfwg-9f8r github.com
- Symfony security advisory symfony.com
- Fix commit 0f5e26b github.com
- Fix commit e885d75 github.com
Other symfony/security-http advisories
- CVE-2026-134790: Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652 2026-11-25
- CVE-2026-123746: Programmatic Logins Skip the checkPostAuth() Method of User Checkers 2026-11-04
- high CVE-2026-48489: Security Firewall Bypass via failure_forward Subrequest: Unauthenticated Access to access_control-Protected GET Routes 2026-05-26
- high CVE-2026-45063: Identity Spoofing via Unanchored DN Regex in X509Authenticator 2026-05-20
- medium CVE-2026-45069: OidcTokenHandler Accepts JWTs Missing aud/iss/exp Claims 2026-05-20
- medium CVE-2026-45074: Cas2Handler Derives CAS service URL from Client Host Header → Cross-Service Ticket Replay 2026-05-20
Related
Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.
Ask about a fixWhere this data comes from
- Affected and fixed versions: the Packagist security advisories API (GitHub Advisory Database and FriendsOfPHP), the same data
composer audituses. Synced 2026-11-29. - Description, score, weakness and references: NIST National Vulnerability Database (NVD), checked 2026-11-25. This product uses data from the NVD API but is not endorsed or certified by the NVD.
- Exploited-in-the-wild status: the CISA Known Exploited Vulnerabilities catalog, checked 2026-11-29.
- Compiled by Daniel Lasek at Laskyr from the sources above. Everything outside the quoted description is our plain-English reading of the record, generated from it. Spot an error? Tell us.