CVE-2026-109413Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the…
In Symfony YAML prior to versions 5.4.54, 6.4.45, 7.4.18, and 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. This issue affects symfony/yaml through v5.4.53, v6.0.0-BETA1 through v6.4.44, v7.0.0-BETA1 through v7.4.17, and v8.0.0-BETA1 through v8.1.5.
What to do
Fixed builds are available from Debian, Packagist: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | symfony | Fix pending | UBUNTU-CVE-2026-109413 | |
| Ubuntu 26.04 | symfony | Under investigation | UBUNTU-CVE-2026-109413 | |
| Ubuntu 24.04 | symfony | Fix pending | UBUNTU-CVE-2026-109413 | |
| Ubuntu 22.04 | symfony | Fix pending | UBUNTU-CVE-2026-109413 | |
| Ubuntu 20.04 | symfony | Fix pending | UBUNTU-CVE-2026-109413 | |
| Ubuntu 18.04 | symfony | Fix pending | UBUNTU-CVE-2026-109413 | |
| Ubuntu 16.04 | symfony | Fix pending | UBUNTU-CVE-2026-109413 | |
| Debian 14 | symfony | Fixed | 7.4.18+dfsg-1 | DEBIAN-CVE-2026-109413 |
| Debian 13 | symfony | Fixed | 6.4.49+dfsg-0+deb13u1 | DEBIAN-CVE-2026-109413 |
| Debian 12 | symfony | Fix pending | DEBIAN-CVE-2026-109413 | |
| Packagist library | symfony/symfony | Fixed | 8.1.6 | GHSA-2v3c-qxhr-7vpv |
| Packagist library | symfony/yaml | Fixed | 5.4.54 | GHSA-2v3c-qxhr-7vpv |
What the vendor says
As published in the CVE record by Checkmarx, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- sensiolabs symfony: affected: before v5.4.54, v6.0.0-BETA1 to before v6.4.45, v7.0.0-BETA1 to before v7.4.18, v8.0.0-BETA1 to before v8.1.6; fixed in
v5.4.54,v6.4.45,v7.4.18,v8.1.6
Vendor advisories:
- https://symfony.com/blog/cve-2026-109413-unbounded-recursion-in-the-yaml-inline-lexer-let… (vendor-advisory)
- https://github.com/symfony/symfony/pull/65688 (patch)
References
- https://github.com/symfony/symfony/security/advisories/GHSA-2v3c-qxhr-7vpv
- https://symfony.com/blog/cve-2026-109413-unbounded-recursion-in-the-yaml-inline-lexer-lets-a-single-document-crash-the-process
- https://github.com/symfony/symfony/pull/65688
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.