{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-118513",
        "assignerOrgId": "596c5446-0ce5-4ba2-aa66-48b3b757a647",
        "state": "PUBLISHED",
        "assignerShortName": "Checkmarx",
        "dateReserved": "2026-10-28T14:33:36.992Z",
        "datePublished": "2026-11-04T12:19:53.359Z",
        "dateUpdated": "2026-11-04T12:23:37.289Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "596c5446-0ce5-4ba2-aa66-48b3b757a647",
                "shortName": "Checkmarx",
                "dateUpdated": "2026-11-04T12:23:37.289Z"
            },
            "title": "Symfony: X.509 Authentication Impersonation via DN Value Injection (incomplete fix for CVE-2026-45063)",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-290",
                            "description": "CWE-290 Authentication bypass by spoofing",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "sensiolabs",
                    "product": "symfony",
                    "collectionURL": "https://packagist.org/packages/symfony/security-http",
                    "packageName": "symfony/security-http",
                    "repo": "https://github.com/symfony/security-http",
                    "modules": [
                        "Symfony\\Component\\Security\\Http\\Authenticator\\X509Authenticator"
                    ],
                    "versions": [
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThan": "5.4.56",
                            "versionType": "git"
                        },
                        {
                            "status": "affected",
                            "version": "6",
                            "lessThan": "6.4.50",
                            "versionType": "git"
                        },
                        {
                            "status": "affected",
                            "version": "7",
                            "lessThan": "7.4.23",
                            "versionType": "git"
                        },
                        {
                            "status": "affected",
                            "version": "8",
                            "lessThan": "8.1.11",
                            "versionType": "git"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "cpeApplicability": [
                {
                    "operator": "OR",
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "0",
                                    "versionEndExcluding": "5.4.56"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6",
                                    "versionEndExcluding": "6.4.50"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7",
                                    "versionEndExcluding": "7.4.23"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "8",
                                    "versionEndExcluding": "8.1.11"
                                }
                            ]
                        }
                    ]
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Authentication bypass by spoofing in X509Authenticator and X509AuthenticationListener of Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11 allows an attacker holding a certificate from the application's trusted CA who can influence the CN to authenticate as an arbitrary user of the application, including a privileged one, following an incomplete fix for CVE-2026-45063.\nX509Authenticator 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, but the regular expression used was 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. 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. RFC 2253 also does not treat / as a separator, so it leaves it bare inside a value, while the expression treats every / as one. 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.\n\n\n\n\n\nTo cover both RFC 2253 and the legacy X509_NAME_oneline() format, 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, 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. The accepted value grammar is unchanged.\n\n\n\n\nApplications that pass a per-attribute user key (such as SSL_CLIENT_S_DN_Email) and deployments whose CA generates or validates the subject are not affected by this vulnerability.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "Authentication bypass by spoofing in&nbsp;<code>X509Authenticator</code>&nbsp;and&nbsp;<code>X509AuthenticationListener</code>&nbsp;of Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11 allows an attacker holding a certificate from the application's trusted CA who can influence the <code>CN</code>&nbsp;to authenticate as an arbitrary user of the application, including a privileged one, following an incomplete fix for&nbsp;CVE-2026-45063.<div><br><div>X509Authenticator extracts the user identifier from the Subject DN (Distinguished Name) that the web server passes in&nbsp;<code>$_SERVER['SSL_CLIENT_S_DN']</code>. The fix for CVE-2026-45063 anchored that extraction to an RDN (Relative Distinguished Name) boundary, but the regular expression used was<span>&nbsp;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.&nbsp;</span>Under&nbsp;<span>RFC 2253, used by Apache and by nginx's&nbsp;</span><code>$ssl_client_s_dn</code><span>, a comma inside a value is escaped as&nbsp;</span><code>\\,</code><span>&nbsp;and the expression reads it as a separator regardless. </span><span>RFC 2253 also does not treat </span><code>/</code><span> as a separator, so it leaves it bare inside a value, while the expression treats every </span><code>/</code><span> as one.&nbsp;</span><span>The legacy </span><code>X509_NAME_oneline()</code><span> format, used by Apache's </span><code>LegacyDNStringFormat</code><span> and by nginx's </span><code>$ssl_client_s_dn_legacy</code><span>, is the mirror image: it escapes </span><code>/</code><span> as </span><code>\\/</code><span> and leaves </span><code>,</code><span> bare. In that format, a certificate with no </span><code>emailAddress</code><span> attribute, or whose poisoned </span><code>CN</code><span> precedes it, authenticates as the smuggled address.</span><span><br></span></div><div><span><br></span></div><div><span>To cover both RFC 2253 and&nbsp;</span>the legacy <code>X509_NAME_oneline()</code> format,&nbsp;<code>X509Authenticator</code><span> and </span><code>X509AuthenticationListener</code><span> now split the DN into RDNs before looking for the attribute, instead of matching the attribute against the serialized string.&nbsp;</span><span>They select the separator from the serialization,</span><span>&nbsp;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. The accepted value grammar is unchanged.</span></div><div><br></div><div>Applications that pass a per-attribute user key (such as&nbsp;<code>SSL_CLIENT_S_DN_Email</code>) and deployments whose CA generates or validates the subject are not affected by this vulnerability.</div></div>"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/symfony/symfony/security/advisories/GHSA-5w3m-mfwg-9f8r",
                    "tags": [
                        "third-party-advisory"
                    ]
                },
                {
                    "url": "https://github.com/symfony/symfony/commit/0f5e26b664d17cb235ca6b6d15bf4e7ac83d25cb",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/symfony/symfony/commit/e885d7549a234530ce1d59121d4ac3ee35b1caea",
                    "tags": [
                        "patch"
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ],
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "privilegesRequired": "LOW",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "HIGH",
                        "subConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "HIGH",
                        "subIntegrityImpact": "NONE",
                        "vulnAvailabilityImpact": "HIGH",
                        "subAvailabilityImpact": "NONE",
                        "exploitMaturity": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "valueDensity": "NOT_DEFINED",
                        "vulnerabilityResponseEffort": "NOT_DEFINED",
                        "providerUrgency": "NOT_DEFINED",
                        "version": "4.0",
                        "baseSeverity": "HIGH",
                        "baseScore": 7.7,
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
                    }
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Oryam Halachmi",
                    "type": "reporter"
                },
                {
                    "lang": "en",
                    "value": "Dahmani Toumi",
                    "type": "reporter"
                },
                {
                    "lang": "en",
                    "value": "Nicolas Grekas",
                    "type": "remediation developer"
                },
                {
                    "lang": "en",
                    "value": "Stapat",
                    "type": "reporter"
                }
            ],
            "source": {
                "advisory": "GHSA-5w3m-mfwg-9f8r",
                "discovery": "UNKNOWN"
            },
            "x_generator": {
                "engine": "Vulnogram 1.0.5"
            }
        }
    }
}