Loading advisory.
Loading advisory.
Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process
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.
Published 2026-10-15 14:57 UTC · Modified 2026-10-27 19:15 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| symfony/symfony | Packagist | >= 2.0.0, < 5.4.54 >= 6.0.0, < 6.4.45 >= 7.0.0, < 7.4.18 >= 8.0.0, < 8.1.6 versions 2.0.4, 2.0.5, 2.0.6, 2.0.7, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.19, v2.0.20, v2.0.21, v2.0.22, v2.0.23, v2.0.24, v2.0.25 and 841 more | 5.4.54, 6.4.45, 7.4.18, 8.1.6 | composer require 'symfony/symfony:>=5.4.54'composer require 'symfony/symfony:>=6.4.45'composer require 'symfony/symfony:>=7.4.18'composer require 'symfony/symfony:>=8.1.6' |
| symfony/yaml | Packagist | >= 2.0.0, < 5.4.54 >= 6.0.0, < 6.4.45 >= 7.0.0, < 7.4.18 >= 8.0.0, < 8.1.6 versions 2.0.4, 2.0.5, 2.0.6, 2.0.7, v2.0.10, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.19, v2.0.20, v2.0.21, v2.0.22, v2.0.23, v2.0.24, v2.0.25, v2.0.9 and 653 more | 5.4.54, 6.4.45, 7.4.18, 8.1.6 | composer require 'symfony/yaml:>=5.4.54'composer require 'symfony/yaml:>=6.4.45'composer require 'symfony/yaml:>=7.4.18'composer require 'symfony/yaml:>=8.1.6' |
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 is installed and the endpoint does not restrict acceptFormat: a single unauthenticated request with a YAML content type is enough.
The inline lexer now enters and leaves the same nesting level as the rest of the parser, so nested inline collections are bounded by maxNestingLevel, and the parser raises a ParseException beyond it.
The patches for this issue are available here for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).
We would like to thank Nicolas Grekas for reporting the issue and providing the fix.
Fix: #65688
EPSS went from 0.004 on 2026-11-24 to 0.005 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |
| 2026-11-26 | 0.005 | 0.004 | v2026.06.15 |
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.