CVE-2026-109413 — Symfony: Unbounded Recursion in symfony/symfony
Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.51%). Schedule for your next planned update.
Does your project use an affected symfony/symfony version?
Paste your composer.lock to check it for CVE-2026-109413 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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 is installed and the endpoint does not restrict acceptFormat: a single unauthenticated request with a YAML content type is enough.
Resolution
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).
Credits
We would like to thank Nicolas Grekas for reporting the issue and providing the fix.
References
- Fix: #65688
Advisory Timeline
- First published October 27, 2026 (30 days ago).
- Last revised October 27, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "symfony/symfony:^6.4.45"
composer require "symfony/yaml:^6.4.45"
composer require "symfony/symfony:^5.4.54"
composer require "symfony/symfony:^8.1.6"
composer require "symfony/symfony:^7.4.18"
composer require "symfony/yaml:^7.4.18"
composer require "symfony/yaml:^8.1.6"
composer require "symfony/yaml:^5.4.54"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (8)
Affects 1 ecosystem: Packagist (2).
| Package | Fixed In |
|---|---|
| symfony/symfony Packagist · Affected: v6.0.0, v6.0.1, v6.0.10, v6.0.11 (+121 more) | 6.4.45 |
| symfony/yaml Packagist · Affected: v6.0.0, v6.0.1, v6.0.10, v6.0.11 (+61 more) | 6.4.45 |
| symfony/symfony Packagist · Affected: 2.0.4, 2.0.5, 2.0.6, 2.0.7 (+629 more) | 5.4.54 |
| symfony/symfony Packagist · Affected: v8.0.0, v8.0.1, v8.0.10, v8.0.11 (+23 more) | 8.1.6 |
| symfony/symfony Packagist · Affected: v7.0.0, v7.0.1, v7.0.10, v7.0.2 (+72 more) | 7.4.18 |
| symfony/yaml Packagist · Affected: v7.0.0, v7.0.3, v7.0.7, v7.0.8 (+38 more) | 7.4.18 |
| symfony/yaml Packagist · Affected: v8.0.0, v8.0.1, v8.0.10, v8.0.11 (+14 more) | 8.1.6 |
| symfony/yaml Packagist · Affected: 2.0.4, 2.0.5, 2.0.6, 2.0.7 (+544 more) | 5.4.54 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-674
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
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
References
- https://github.com/symfony/symfony/security/advisories/GHSA-2v3c-qxhr-7vpvWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-109413ADVISORY
- https://github.com/symfony/symfony/pull/65688WEB
- https://github.com/symfony/symfony/commit/116287c3b5bc057e7a0420d2e52d384e14ea9417WEB
- https://github.com/symfony/symfony/commit/2a8bf9c58d862b0c76a35ce288d1ba6a27223aadWEB
- https://github.com/symfony/symfony/commit/8fb436fed9658a79d220e9f2b1ba8a2095559018WEB
- https://github.com/symfony/symfony/commit/ab61e6cfd35042f16840a00f485eab2481dd4c2aWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-109413.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/yaml/CVE-2026-109413.yamlWEB
- https://github.com/symfony/symfonyPACKAGE
- https://github.com/symfony/symfony/releases/tag/v5.4.54WEB
- https://github.com/symfony/symfony/releases/tag/v6.4.45WEB
- https://github.com/symfony/symfony/releases/tag/v7.4.18WEB
- https://github.com/symfony/symfony/releases/tag/v8.1.6WEB
- https://symfony.com/blog/cve-2026-109413-unbounded-recursion-in-the-yaml-inline-lexer-lets-a-single-document-crash-the-processWEB
- https://symfony.com/cve-2026-109413WEB
Frequently Asked Questions
- What is CVE-2026-109413?
- Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-109413?
- CVE-2026-109413 affects symfony/symfony and symfony/yaml. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-109413 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 36.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2018-11407CRITICAL
Symfony Authentication Bypass
- CVE-2019-18889CRITICAL
Symfony Unsafe Cache Serialization Could Enable RCE
- CVE-2025-64500HIGH
Symfony's incorrect parsing of PATH_INFO can lead to limited authorization bypass
- CVE-2026-45075HIGH
Symfony's HEAD Request Bypasses methods: ['GET'] Filter in #[IsGranted] / #[IsSignatureValid] / #[IsCsrfTokenValid]
- CVE-2018-11406HIGH
Symfony CSRF Token Fixation
- CVE-2026-45754MEDIUM
Symfony's Mailjet Mailer Webhook Parser Never Verifies the Configured Secret — Unauthenticated Webhook Event Injection
- CVE-2026-45073MEDIUM
Symfony Vulnerable to SQL Injection in PdoAdapter::doClear() via Unsanitized $prefix
- CVE-2026-47767MEDIUM
SymfonyRuntime CVE-2024-50340 Patch Bypass: Web Requests Can Still Set APP_ENV/APP_DEBUG via parse_str/SAPI Argv Mismatch