# Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process

High severity, published 2026-10-27. Update symfony/symfony to the fixed version of your branch (5.4.54, 6.4.45, 7.4.18, 8.1.6) and symfony/yaml to the fixed version of your branch (5.4.54, 6.4.45, 7.4.18, 8.1.6): composer update symfony/symfony symfony/yaml.

Canonical URL: https://buzzphp.com/security/ghsa-2v3c-qxhr-7vpv · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-10-27 |
| Updated | 2026-10-27 |
| CVE | [CVE-2026-109413](https://nvd.nist.gov/vuln/detail/CVE-2026-109413) |
| GHSA | [GHSA-2v3c-qxhr-7vpv](https://github.com/advisories/GHSA-2v3c-qxhr-7vpv) |
| Weakness | CWE-674 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| symfony/symfony | >= 2.0.0, < 5.4.54 or >= 6.0.0, < 6.4.45 or >= 7.0.0, < 7.4.18 or >= 8.0.0, < 8.1.6 | 5.4.54, 6.4.45, 7.4.18, 8.1.6 |
| symfony/yaml | >= 2.0.0, < 5.4.54 or >= 6.0.0, < 6.4.45 or >= 7.0.0, < 7.4.18 or >= 8.0.0, < 8.1.6 | 5.4.54, 6.4.45, 7.4.18, 8.1.6 |

## What to do

Update symfony/symfony to the fixed version of your branch (5.4.54, 6.4.45, 7.4.18, 8.1.6) and symfony/yaml to the fixed version of your branch (5.4.54, 6.4.45, 7.4.18, 8.1.6): composer update symfony/symfony symfony/yaml.

Check which version you run with `composer show symfony/symfony`, and every affected package with `composer audit`.

## About this advisory

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.

## Links

- [GHSA-2v3c-qxhr-7vpv on GitHub](https://github.com/advisories/GHSA-2v3c-qxhr-7vpv)
- [CVE-2026-109413 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-109413)
- [All Composer security advisories](https://buzzphp.com/security)
