{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-134791","assignerOrgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","state":"PUBLISHED","assignerShortName":"Symfony","dateReserved":"2026-11-22T17:09:05.968Z","datePublished":"2026-11-25T10:00:22.747Z","dateUpdated":"2026-11-25T10:00:22.747Z"},"containers":{"cna":{"providerMetadata":{"orgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","shortName":"Symfony","dateUpdated":"2026-11-25T10:00:22.747Z"},"title":"Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic, Letting Untrusted Expressions Hold a Process","datePublic":"2026-11-25T09:36:49.000Z","descriptions":[{"lang":"en","value":"Since Symfony 7.2, expressions can contain comments. The lexer used a regular expression to find the end of a comment. When a /* was never closed, this regular expression scanned the rest of the expression, and the lexer then went on with the next character. So each /* scanned the rest of the expression again. Linting 192 KB of /*  took 9 to 11 seconds, and 96 KB took 34 seconds without PCRE JIT.\n\nThe lexer runs before the parser and its nesting limit. Any code that lints or parses untrusted expressions is affected, including the ExpressionSyntax validation constraint. A Length constraint on the same value doesn't help, since the validator runs both constraints.\n\nThe lexer now uses strpos() to find the end of a comment, and a comment that is never closed throws a SyntaxError. Such expressions were already invalid. Lexing takes linear time again.","supportingMedia":[{"type":"text/markdown","base64":false,"value":"Since Symfony 7.2, expressions can contain comments. The lexer used a regular expression to find the end of a comment. When a `/*` was never closed, this regular expression scanned the rest of the expression, and the lexer then went on with the next character. So each `/*` scanned the rest of the expression again. Linting 192 KB of `/* ` took 9 to 11 seconds, and 96 KB took 34 seconds without PCRE JIT.\n\nThe lexer runs before the parser and its nesting limit. Any code that lints or parses untrusted expressions is affected, including the `ExpressionSyntax` validation constraint. A `Length` constraint on the same value doesn't help, since the validator runs both constraints.\n\nThe lexer now uses `strpos()` to find the end of a comment, and a comment that is never closed throws a `SyntaxError`. Such expressions were already invalid. Lexing takes linear time again."}]}],"affected":[{"vendor":"Symfony","product":"symfony/expression-language","collectionURL":"https://packagist.org","packageName":"symfony/expression-language","repo":"https://github.com/symfony/symfony","defaultStatus":"unaffected","versions":[{"version":"7.2.0","status":"affected","lessThan":"7.4.24","versionType":"semver"},{"version":"8.0.0","status":"affected","lessThan":"8.1.12","versionType":"semver"}]},{"vendor":"Symfony","product":"symfony/symfony","collectionURL":"https://packagist.org","packageName":"symfony/symfony","repo":"https://github.com/symfony/symfony","defaultStatus":"unaffected","versions":[{"version":"7.2.0","status":"affected","lessThan":"7.4.24","versionType":"semver"},{"version":"8.0.0","status":"affected","lessThan":"8.1.12","versionType":"semver"}]}],"problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-407","description":"CWE-407 Inefficient Algorithmic Complexity","type":"CWE"}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","baseScore":8.7,"baseSeverity":"HIGH"}}],"references":[{"url":"https://symfony.com/cve-2026-134791","name":"CVE-2026-134791","tags":["vendor-advisory"]},{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-5vf6-gchv-cmcr","name":"GHSA-5vf6-gchv-cmcr","tags":["vendor-advisory"]},{"url":"https://github.com/symfony/symfony/commit/e098ffa5936c7c238b9c1a9d5cb82def4573de4f","tags":["patch"]}],"credits":[{"lang":"en","value":"Nicolas Grekas","type":"finder"}],"source":{"advisory":"GHSA-5vf6-gchv-cmcr","discovery":"UNKNOWN"},"x_generator":{"engine":"symfony/ghsa-to-cve"}}}}