CVE-2026-134791
Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic, Letting Untrusted Expressions Hold a Process
Mitigation
- Upgrade symfony/expression-language to 8.1.12 or later.
- Upgrade symfony/symfony to 8.1.12 or later.
Who should check
- Anyone running symfony/expression-language >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12
- Anyone running symfony/symfony >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12
Vulnerability facts
- Affected
- symfony/expression-language >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12; symfony/symfony >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12
- Fixed in
- symfony/expression-language 7.4.24, symfony/expression-language 8.1.12, symfony/symfony 7.4.24, symfony/symfony 8.1.12
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.7 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.64% chance of exploitation in 30 days (percentile 45, 2026-11-26)
- CWE
- CWE-407
- Modified
Description
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. The 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. The 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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| symfony/expression-language | >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12 | — | cvelist |
| symfony/symfony | >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-134791. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-134791.md Affected: symfony/expression-language >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12; symfony/symfony >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12 Fixed in: symfony/expression-language 7.4.24, symfony/expression-language 8.1.12, symfony/symfony 7.4.24, symfony/symfony 8.1.12 Steps: 1. Search this machine and project for symfony/expression-language, symfony/symfony: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Vendor advisories
FAQ
Is CVE-2026-134791 being exploited?
There is no confirmed exploitation: CVE-2026-134791 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.64% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-134791?
High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-134791?
symfony/expression-language >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12; symfony/symfony >= 7.2.0, < 7.4.24; >= 8.0.0, < 8.1.12.
Is there a fix for CVE-2026-134791?
Yes. Fixed in symfony/expression-language 7.4.24, symfony/expression-language 8.1.12, symfony/symfony 7.4.24, symfony/symfony 8.1.12. Upgrade symfony/expression-language to 8.1.12 or later. Upgrade symfony/symfony to 8.1.12 or later.
How do I check if I'm affected by CVE-2026-134791?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Symfony vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| HIGH 8.3 | CVE-2026-134792 HttpClient Lets the Proxy Header of a Request Choose the Proxy of Outgoing Requests in HTTP Workers That Run Under the CLI SAPI | Symfony | EPSS 45% | |
| MEDIUM 5.3 | CVE-2026-134790 Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652 | Symfony | EPSS 63% | |
| MEDIUM 6.0 | CVE-2026-133762 Without APP_RUNTIME_MODE, HTTP Workers Running Under the CLI SAPI Return Full Exception Dumps in Production | Symfony | EPSS 49% | |
| HIGH 8.7 | CVE-2026-133761 CsvEncoder Nests Rows Once per Key Separator of a Header, Letting a Small CSV Payload Crash PHP | Symfony | EPSS 45% | |
| HIGH 8.7 | CVE-2026-133760 Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang It | Symfony | EPSS 45% |