CVE-2026-134791: Since Symfony 7.2, expressions can contain comments
Affects symfonySource GCVE Database
Not known to be exploited · CVSS 8.7 High.
Data as of 25 Nov 2026, 22:23 UTC
Thin evidence
One scorer or none| CNA (Symfony) | CVSS 4.0 | 8.7 |
|---|
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 25 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 25 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10symfonypkg:deb/ubuntu/symfony?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSsymfonypkg:deb/ubuntu/symfony?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTSsymfonypkg:deb/ubuntu/symfony?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTSsymfonypkg:deb/ubuntu/symfony?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSsymfonypkg:deb/ubuntu/symfony?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSsymfonypkg:deb/ubuntu/symfony?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available that changes the lexer implementation to use strpos() for comment detection and throws a SyntaxError for unclosed comments, restoring linear lexing time. Users should upgrade to the patched Symfony versions where this fix is applied.
Description
Since Symfony 7.2, expressions can include comments. A flaw in the lexer caused it to inefficiently process unclosed comment delimiters (/*), resulting in excessive scanning and very high processing times for large inputs. This impacts any code that parses or validates untrusted expressions, causing potential denial of service due to high CPU usage. The issue has been addressed by changing the lexer to use a more efficient method to detect comment ends and by throwing a syntax error for unclosed comments, restoring linear lexing time.
References
- ubuntu.com/security/CVE-2026-134791 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-134791 (opens in a new tab)
- github.com/symfony/symfony/commit/e098ffa5936c7c238b9c1a9d5cb82def4573de4f (opens in a new tab)
- github.com/symfony/symfony/security/advisories/GHSA-5vf6-gchv-cmcr (opens in a new tab)
- symfony.com/cve-2026-134791 (opens in a new tab)