CVE-2026-45063

Symfony: Identity Spoofing via Unanchored DN Regex in X509Authenticator

Published Jul 14, 2026 CVSS 4.0 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.52, 6.4.40, 7.4.12, and 8.0.12, X509Authenticator extracts the user identifier from $_SERVER['SSL_CLIENT_S_DN'] with an unanchored regex that matches emailAddress= anywhere in the distinguished name, allowing an attacker with a trusted certificate containing emailAddress=victim inside another RDN value such as CN to authenticate as the victim. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.

Analysis

AI-generated

Technical impact

Symfony’s X509Authenticator extracts the user identifier from the server variable $_SERVER['SSL_CLIENT_S_DN'] using an unanchored regular expression that matches the substring emailAddress= anywhere in the distinguished name. Because the regex is not anchored, an attacker who can present a trusted client certificate can embed the victim’s email address within another relative distinguished name, such as the common name field, and the authenticator will treat that value as the user. As a result, the attacker can authenticate as the victim without needing additional privileges or executing code, leading to full impersonation of the victim account.

Affected Systems

Affected installations are Symfony framework versions 5.4, 6.4, 7.4, and 8.0 that are earlier than releases 5.4.52, 6.4.40, 7.4.12, and 8.0.12 respectively. Any application that employs X509Authenticator to map client certificate distinguished names to users is vulnerable. The flaw is present in the Symfony component package symfony:symfony and applies to web and console applications built with Symfony.

Risk and Exploitability

The CVSS score of 9.1 rates this issue as critical, reflecting its potential for complete authentication bypass. The EPSS score of less than 1% indicates that exploitation is currently unlikely, and the vulnerability is not yet listed in CISA's KEV catalog. However, an attacker with a client certificate capable of forging the distinguished name can exploit this vulnerability without needing additional privileges or remote code execution; they merely need to supply the crafted certificate to the application’s X509 authentication flow.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Symfony to the patched releases 5.4.52 or later, 6.4.40 or later, 7.4.12 or later, or 8.0.12 or later that match your current major version.
  • If upgrading is not immediately feasible, disable the X509Authenticator component or configure the application to ignore emailAddress values extracted from the distinguished name.
  • Implement a stricter validation check in the authentication flow—anchor the regex or verify that the emailAddress field originates from the dedicated emailAddress RDN before using it as a user identifier.

Generated by OpenCVE AI on July 31, 2026 at 05:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6312-1 symfony security update
Debian DSA Debian DSA DSA-6317-1 symfony security update
Github GHSA Github GHSA GHSA-ph86-p8f6-f9r2 Symfony Vulnerable to Identity Spoofing via Unanchored DN Regex in X509Authenticator
History
Type Values Removed Values Added
First Time appeared Symfony
Symfony symfony
Vendors & Products Symfony
Symfony symfony
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.52, 6.4.40, 7.4.12, and 8.0.12, X509Authenticator extracts the user identifier from $_SERVER['SSL_CLIENT_S_DN'] with an unanchored regex that matches emailAddress= anywhere in the distinguished name, allowing an attacker with a trusted certificate containing emailAddress=victim inside another RDN value such as CN to authenticate as the victim. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.
Title Symfony: Identity Spoofing via Unanchored DN Regex in X509Authenticator
Weaknesses CWE-290
References
Metrics cvssV4_0

{'score': 9.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-290

    Authentication Bypass by Spoofing

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 14, 2026, 7:46 PM
Reserved
May 8, 2026, 6:45 PM
Status
Analyzed
Published
Jul 14, 2026, 7:17 PM
Modified
Jul 15, 2026, 3:01 PM