cvelo
P2 · HighCVSS 8.7EPSS 0.6%

Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang It

  • CVE-2026-133760
  • EUVD-2026-135185

Description

The fix for CVE-2026-109449 made the expression parser check the nesting level of long expressions. This check exists since Symfony 5.4.54, 6.4.48, 7.4.21 and 8.1.9. The parser builds a ?: b with the node of a used twice, and the check walked every path to every node. With nested short ternaries, the number of paths doubles at each level, so an expression of 256 bytes never finished parsing. The expression needs no variable and no function. Any code that parses or lints untrusted expressions is affected, including the ExpressionSyntax validation constraint. evaluate() and compile() parse the expression first, so they hang too. The nesting check now skips the nodes it already checked, so it takes linear time again. evaluate(), compile() and the messages of runtime errors now use the node of a once, so a is evaluated once, as in PHP.

Text from the CVE.org record.

Recommendation

  • Symfony symfony/expression-language

    • If you run 8.1.xupdate to 8.1.12 or laterPatch update: breaking changes are unlikely
    • If you run 7.4.xupdate to 7.4.24 or laterPatch update: breaking changes are unlikely
    • If you run 6.4.xupdate to 6.4.51 or laterPatch update: breaking changes are unlikely
    • If you run 5.4.xupdate to 5.4.57 or laterPatch update: breaking changes are unlikely
  • Symfony symfony/symfony

    • If you run 8.1.xupdate to 8.1.12 or laterPatch update: breaking changes are unlikely
    • If you run 7.4.xupdate to 7.4.24 or laterPatch update: breaking changes are unlikely
    • If you run 6.4.xupdate to 6.4.51 or laterPatch update: breaking changes are unlikely
    • If you run 5.4.xupdate to 5.4.57 or laterPatch update: breaking changes are unlikely

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Symfony symfony/expression-language

    Affected versionsFixed in
    from 8.1.9 to before 8.1.128.1.12
    from 7.4.21 to before 7.4.247.4.24
    from 6.4.48 to before 6.4.516.4.51
    from 5.4.54 to before 5.4.575.4.57
  • Symfony symfony/symfony

    Affected versionsFixed in
    from 8.1.9 to before 8.1.128.1.12
    from 7.4.21 to before 7.4.247.4.24
    from 6.4.48 to before 6.4.516.4.51
    from 5.4.54 to before 5.4.575.4.57

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.