- Accueil
- Vulnérabilités
- CVE-2026-134791
CVE-2026-134791
Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic, Letting Untrusted Expressions Hold a Process
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Symfony (4 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| symfony/expression-language | de 7.2.0 (inclus) à 7.4.24 (exclu) |
— | CNA (éditeur ou attributeur) |
| symfony/expression-language | de 8.0.0 (inclus) à 8.1.12 (exclu) |
— | CNA (éditeur ou attributeur) |
| symfony/symfony | de 7.2.0 (inclus) à 7.4.24 (exclu) |
— | CNA (éditeur ou attributeur) |
| symfony/symfony | de 8.0.0 (inclus) à 8.1.12 (exclu) |
— | CNA (éditeur ou attributeur) |
Correctif
Mise à jour — 7.4.24, 8.1.12source officielle
Source : CERT-FR · Ouvrir
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1619)
- — Publication de la CVE (cve)
Avis CERT-FR
- CERTFR-2026-AVI-1619 — Multiples vulnérabilités dans Symfony (25 novembre 2026) 25 nov. 2026
Références
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- CNA (éditeur ou attributeur)
- Vecteur CVSS
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 4.0, CNA:Symfony)- Faiblesse
- CWE-407 · Autre (CWE-407)