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.
Published: 2026-07-14
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Wed, 15 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Symfony
Symfony symfony
Vendors & Products Symfony
Symfony symfony

Tue, 14 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 14 Jul 2026 18:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-14T19:46:44.743Z

Reserved: 2026-05-08T18:45:10.095Z

Link: CVE-2026-45063

cve-icon Vulnrichment

Updated: 2026-07-14T19:40:50.958Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T06:00:16Z

Weaknesses
  • CWE-290

    Authentication Bypass by Spoofing