- Packages
- symfony/security-http, symfony/symfony
- Fixed in
- 5.4.56, 6.4.50, 7.4.23, 8.1.11
- Published
- Tue 1 Dec 2026, 21:28 LisbonUpdated Wed 2 Dec 2026, 00:45 Lisbon
- Installs on Packagist
- 207M
In plain words
An attacker with a certificate from your application's trusted CA who can influence its CN can sign in as another user, including a privileged user. This happens when Symfony extracts the user identifier from the full certificate Subject DN and mistakes characters inside a value for attribute boundaries. Applications using a per-attribute userKey, or a CA that generates or validates the subject rather than accepting requester-supplied values, are not affected.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| symfony/security-http | < 5.4.56 | 5.4.56 |
| symfony/security-http | >= 6.0.0, < 6.4.50 | 6.4.50 |
| symfony/security-http | >= 7.0.0, < 7.4.23 | 7.4.23 |
| symfony/security-http | >= 8.0.0, < 8.1.11 | 8.1.11 |
| symfony/symfony | < 5.4.56 | 5.4.56 |
| symfony/symfony | >= 6.0.0, < 6.4.50 | 6.4.50 |
| symfony/symfony | >= 7.0.0, < 7.4.23 | 7.4.23 |
| symfony/symfony | >= 8.0.0, < 8.1.11 | 8.1.11 |
How serious is it?
High is a CVSS score of 7.0 to 8.9: serious impact with few preconditions. Plan the update within days, ahead of feature work, and check the logs for signs it was tried.
symfony/security-http has 207M installs on Packagist, so the advisory reaches a large number of projects: expect scanners to look for it soon.
Am I affected?
Check composer.lock for symfony/security-http or symfony/symfony in these affected ranges: < 5.4.56, >= 6.0.0, < 6.4.50, >= 7.0.0, < 7.4.23, or >= 8.0.0, < 8.1.11. Check whether X.509 authentication extracts the identifier from $_SERVER['SSL_CLIENT_S_DN'] rather than a per-attribute userKey, and whether your trusted CA accepts requester-supplied subject values. The documented nginx configuration uses this fallback. On Symfony 5.4, also check X509AuthenticationListener, used when security.enable_authenticator_manager is not true, the default on 5.4. Custom attributes selected through credentialUserIdentifier are also affected.
Did you install symfony/security-http, or did a dependency?
Composer says why a package is in your project:
composer why symfony/security-http
If the output names your own project, you required symfony/security-http directly and the update is yours to make. If it names another package, symfony/security-http came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:
composer why-not symfony/security-http 5.4.56
Every line it prints is a constraint that blocks 5.4.56. Update the package it names, or raise your own constraint, and run it again until it prints nothing. If you stay on an older branch, ask about its fix instead: 6.4.50, 7.4.23, 8.1.11.
What to do
Check which version you have, then update to a fixed release for your branch (5.4.56, 6.4.50, 7.4.23, 8.1.11):
composer show symfony/security-http | grep versions
composer update symfony/security-http
If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.
If you cannot update yet
Pass a per-attribute value as the user key, such as Apache's SSL_CLIENT_S_DN_Email or HAProxy's ssl_c_s_dn(emailAddress). For Apache's LegacyDNStringFormat or nginx's $ssl_client_s_dn_legacy with OpenSSL before 3.0, or HAProxy's ssl_c_s_dn, switch to RFC 2253 output: Apache's default, nginx's $ssl_client_s_dn, or HAProxy's ssl_c_s_dn(,rfc2253).
Check the whole project at once
Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:
composer audit --locked
--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.
Under the Cyber Resilience Act
No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.
Either way, if symfony/security-http ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated symfony/security-http, and why, is the evidence you will want later.
What goes in each Article 14 report · Does the CRA apply to your product?
symfony/security-http's record
This is the only advisory for symfony/security-http since the digest started following Composer packages in September 2026. One advisory says little about a package's quality; what matters is how fast the fix came, and here it is out.
The advisory's description
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_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 for branch 5.4 and here 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 and João Oliveira from Checkmarx for their help getting a CVE assigned.
Weakness: CWE-290 Authentication Bypass by Spoofing. Reported by nicolas-grekas, pgaSUS99, stapat1245.