Skip to content
Laskyr

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

7.7 High CVSS 4.0

Fixed in symfony/security-http 5.4.56, 6.4.50, 7.4.23 and 8.1.11

This authentication bypass issue affects symfony/security-http in 4 release lines: >= 2.0.0, < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11. Upgrade to the fixed version for your release line (5.4.56, 6.4.50, 7.4.23 and 8.1.11). The newest release, 8.2.0, is not affected.

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

The same advisory covers another package in our list. Fix whichever one your project installs.

Is your symfony/security-http version affected?

Run composer show symfony/security-http in your project, then enter the version. We check it against this and every other known symfony/security-http advisory.

Who can exploit CVE-2026-118513

Your app is only exposed if it uses the affected part of symfony/security-http. The advisory below says which part that is. If you are not sure, upgrade anyway: it costs less than finding out.

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

  1. Find the installed version: composer show symfony/security-http. If you never required it yourself, composer why symfony/security-http shows which package pulls it in.
  2. 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).
  3. 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.
  4. Run composer audit. It reads the same advisory data and should no longer list CVE-2026-118513.
  5. Commit composer.lock and deploy it. On the server, run composer install --no-dev from the lock file, not composer update.

If you cannot upgrade yet

General hardening for authentication bypass issues while the upgrade waits. None of it replaces the fix.

Is your project exposed to CVE-2026-118513?

Check the one package here, or check everything your project installs at once.

  1. Check symfony/security-http Enter your installed version and compare it with every known symfony/security-http advisory. Check my version
  2. Check your whole composer.lock The free checker compares every locked package with the same advisory data composer audit uses. 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.

Description from the CVE record, via the NVD entry for CVE-2026-118513. Advisory title: “CVE-2026-118513: X509Authenticator and X509AuthenticationListener Read Escaped RFC 2253 Commas and Bare Slashes Inside a DN Value as RDN Boundaries: Incomplete Fix for CVE-2026-45063”.

References

Other symfony/security-http advisories

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 fix

Where this data comes from

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit

The box is optional and does not affect the kit. Privacy policy.