User Impersonation Affecting symfony/security-http package, versions <5.4.56>=6.0.0, <6.4.50>=7.0.0, <7.4.23>=8.0.0, <8.1.11


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.27% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-SYMFONYSECURITYHTTP-23195669
  • published1 Dec 2026
  • disclosed4 Nov 2026
  • creditOryam Halachmi, dahmani toumi, Stapat

Introduced: 4 Nov 2026

NewCVE-2026-118513  (opens in a new tab)
CWE-290  (opens in a new tab)

How to fix?

Upgrade symfony/security-http to version 5.4.56, 6.4.50, 7.4.23, 8.1.11 or higher.

Overview

symfony/security-http is a provides an infrastructure for sophisticated authorization systems, which makes it possible to easily separate the actual authorization logic from so called user providers that hold the users credentials.

Affected versions of this package are vulnerable to User Impersonation via an incomplete fix for CVE-2026-45063 in X509Authenticator and X509AuthenticationListener, where the regular expression used to extract the user identifier from the Subject DN is not escape-aware. The expression matches against the already-serialized DN string, so an escaped comma (\,) or a bare slash inside a certificate CN value is read as an RDN separator, allowing an attacker who holds a certificate from the application's trusted CA and can influence the CN to inject a fake emailAddress attribute and authenticate as an arbitrary user, including a privileged one. Both the RFC 2253 format (used by Apache and nginx's $ssl_client_s_dn) and the legacy X509_NAME_oneline() format (used by Apache's LegacyDNStringFormat and nginx's $ssl_client_s_dn_legacy) are affected in opposite directions, and on Symfony 5.4 the deprecated X509AuthenticationListener was additionally exposed to the original pre-fix attack path.

Note: This is only exploitable when the attacker holds a certificate issued by the application's trusted CA and can influence the CN value, and does not apply to deployments that pass a per-attribute user key (e.g. SSL_CLIENT_S_DN_Email) or whose CA generates and validates the subject itself.

CVSS Base Scores

version 4.0
version 3.1