# CVE-2026-134791: Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic, Letting Untrusted Expressions Hold a Process

- **Severity:** HIGH 8.7
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.64% (percentile 45, 2026-11-29)
- **CWE:** CWE-407
- **Published:** 2026-11-25T10:00:22.747Z
- **Modified:** 2026-11-30T15:29:56.663Z

## 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

## 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

- 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)

## Technologies

Symfony

## Mitigation

- Upgrade symfony/expression-language to 8.1.12 or later.
- Upgrade symfony/symfony to 8.1.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-29).

### 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.

## References

- vendor: <https://symfony.com/cve-2026-134791>
- vendor: <https://github.com/symfony/symfony/security/advisories/GHSA-5vf6-gchv-cmcr>
- patch: <https://github.com/symfony/symfony/commit/e098ffa5936c7c238b9c1a9d5cb82def4573de4f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-134791>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-134791> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-134791>
