{"id":"CVE-2026-109413","published":"2026-10-15T14:57:00Z","modified":"2026-10-15T18:06:55Z","title":"Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process","vendor":"sensiolabs","product":"symfony","tier":"tail","description":{"text":"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.\n\n\n\nAny 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.\n\n\n\nThis 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00507,"percentile":0.36423,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-2v3c-qxhr-7vpv","tags":["third-party-advisory"]},{"url":"https://symfony.com/blog/cve-2026-109413-unbounded-recursion-in-the-yaml-inline-lexer-lets-a-single-document-crash-the-process","tags":["vendor-advisory"]},{"url":"https://github.com/symfony/symfony/pull/65688","tags":["patch"]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":7.28},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"sensiolabs","affectedVersions":[{"vendor":"sensiolabs","product":"symfony","versions":["< v5.4.54",">= v6.0.0-BETA1, < v6.4.45",">= v7.0.0-BETA1, < v7.4.18",">= v8.0.0-BETA1, < v8.1.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-15T18:06:37.552332Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=2.0.0, <5.4.54",">=6.0.0, <6.4.45",">=7.0.0, <7.4.18",">=8.0.0, <8.1.6"],"patched":["5.4.54","6.4.45","7.4.18","8.1.6"],"from":["GHSA-2v3c-qxhr-7vpv"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/yaml","vulnerableRanges":[">=2.0.0, <5.4.54",">=6.0.0, <6.4.45",">=7.0.0, <7.4.18",">=8.0.0, <8.1.6"],"patched":["5.4.54","6.4.45","7.4.18","8.1.6"],"from":["GHSA-2v3c-qxhr-7vpv"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-102109","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-symfony-cve-2013-1348","parents":[{"from":"CVE-2026-45304","to":"CVE-2026-109413","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/yaml","fromFixed":"5.4.52","toFixed":"5.4.54","daysApart":93},{"kind":"version-step","provenance":"source","package":"Packagist:symfony/yaml","fromFixed":"6.4.40","toFixed":"6.4.45","daysApart":93},{"kind":"same-code","provenance":"machine","files":["src/Symfony/Component/Yaml/Inline.php","src/Symfony/Component/Yaml/Parser.php"],"commits":["https://github.com/symfony/symfony/commit/116287c3b5bc057e7a0420d2e52d384e14ea9417","https://github.com/symfony/symfony/commit/2a8bf9c58d862b0c76a35ce288d1ba6a27223aad","https://github.com/symfony/symfony/commit/e77391b2e4f18821198f010d573674c8ed4a970a"],"basis":"shared function","functions":["doParse"]}]}],"packageHistory":[{"cve":"CVE-2026-48736","published":"2026-07-14","fixed":"8.0.13","kev":false,"link":{"from":"CVE-2026-48736","to":"CVE-2026-109413","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"5.4.53","toFixed":"5.4.54","daysApart":93}]}},{"cve":"CVE-2026-48760","published":"2026-07-14","fixed":"8.0.13","kev":false},{"cve":"CVE-2026-48761","published":"2026-07-14","fixed":"8.0.13","kev":false},{"cve":"CVE-2026-48784","published":"2026-07-14","fixed":"8.0.13","kev":false},{"cve":"CVE-2026-109413","published":"2026-10-15","fixed":"8.1.6","kev":false},{"cve":"CVE-2026-108082","published":"2026-10-15","fixed":"8.1.7","kev":false,"link":{"from":"CVE-2026-109413","to":"CVE-2026-108082","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"6.4.45","toFixed":"6.4.46","daysApart":0},{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"7.4.18","toFixed":"7.4.19","daysApart":0}]}}],"package":"Packagist:symfony/symfony"}}