HighGHSA-2v3c-qxhr-7vpv
Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process
Affected versions
2.0.0 to before 5.4.54, 6.0.0 to before 6.4.45, 7.0.0 to before 7.4.18, 8.0.0 to before 8.1.6 - fixed in 5.4.54Details
### Description `Yaml\Parser::lexInlineStructure()` recursed through `lexInlineMapping()` and `lexInlineSequence()` for every `{` and `[` of an inline collection, without entering the nesting level that the rest of the parser bounds with `maxNestingLevel`. A document made of deeply nested inline collections, such as `[[[[...]]]]`, exhausted the stack while it was being lexed: depending on the PHP version and its stack settings, the process crashed or the request ended with a fatal error. Any code parsing untrusted YAML is affected. That includes `#[MapRequestPayload]` when the Yaml component
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-109413
- https://github.com/symfony/symfony/security/advisories/GHSA-2v3c-qxhr-7vpv
- https://nvd.nist.gov/vuln/detail/CVE-2026-109413
- https://github.com/symfony/symfony/pull/65688
- https://github.com/symfony/symfony/commit/116287c3b5bc057e7a0420d2e52d384e14ea9417
- https://github.com/symfony/symfony/commit/2a8bf9c58d862b0c76a35ce288d1ba6a27223aad
- https://github.com/symfony/symfony/commit/8fb436fed9658a79d220e9f2b1ba8a2095559018
- https://github.com/symfony/symfony/commit/ab61e6cfd35042f16840a00f485eab2481dd4c2a
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected