Symfony Vulnerable to Identity Spoofing via Unanchored DN Regex in X509AuthenticatorGHSA-ph86-p8f6-f9r2
Fix: symfony/symfony@ccb3f72GHSA-ph86-p8f6-f9r2 is a CWE-290 vulnerability in symfony/security-http. A fix is available for symfony/security-http — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- A successful exploit gives an attacker total control of the affected component, not partial access.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-ph86-p8f6-f9r2.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
symfony/security-http🐘symfony/security-http🐘symfony/security-http🐘symfony/security-http🐘symfony/symfony🐘symfony/symfony🐘symfony/symfony🐘symfony/symfonyReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Description
X509Authenticator implements client-certificate (mTLS) authentication: the web server validates the client's certificate against a trusted CA, then passes the certificate's Subject DN (Distinguished Name: a string like CN=Alice,O=Example,[email protected]) to Symfony via $_SERVER['SSL_CLIENT_S_DN']. Symfony extracts the user identifier from that string.
The extraction uses an unanchored regex that matches emailAddress= anywhere in the DN string: including inside the value of a different RDN (Relative Distinguished Name: one key=value component of the DN), such as CN. An attacker who can obtain a certificate from a trusted CA with a free-text CN can smuggle emailAddress=victim@target inside the CN value and be authenticated as the victim.
Resolution
The X509Authenticator now uses a regex that anchors the match to an RDN boundary (start of string, or following a , / / separator).
The patch for this issue is available here for branch 5.4.
Credits
Symfony would like to thank Claude Mythos Preview (via Project Glasswing) for reporting the issue and providing the fix.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | symfony/security-http | all versions | 5.4.52composer require symfony/security-http:^5.4.52 |
| 🐘Packagist | symfony/security-http | ≥ 6.0.0-BETA1&&< 6.4.40 | 6.4.40composer require symfony/security-http:^6.4.40 |
| 🐘Packagist | symfony/security-http | ≥ 7.0.0-BETA1&&< 7.4.12 | 7.4.12composer require symfony/security-http:^7.4.12 |
| 🐘Packagist | symfony/security-http | ≥ 8.0.0-BETA1&&< 8.0.12 | 8.0.12composer require symfony/security-http:^8.0.12 |
| 🐘Packagist | symfony/symfony | all versions | 5.4.52composer require symfony/symfony:^5.4.52 |
| 🐘Packagist | symfony/symfony | ≥ 6.0.0-BETA1&&< 6.4.40 | 6.4.40composer require symfony/symfony:^6.4.40 |
Affected Products
symfonysensiolabsDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for symfony/security-http, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update symfony/security-http to 5.4.52 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-ph86-p8f6-f9r2 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-ph86-p8f6-f9r2 in your dependencies?
Find it across Packagist, including transitive dependencies.