CVE-2026-109413: Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process

Published Oct 15, 2026
·
Updated

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 prior to v5.4.54, v6.0.0-BETA1 prior to v6.4.45, v7.0.0-BETA1 prior to v7.4.18, and v8.0.0-BETA1 prior to v8.1.6.

Affected Software

1 affected component
packagist/symfony/yaml>=5.4.0<5.4.54, >=6.0.0-BETA1<6.4.45, >=7.0.0-BETA1<7.4.18, >=8.0.0-BETA1<8.1.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade symfony/yaml to a version that resolves this vulnerability.

    Fixed in 5.4.54
  2. Upgrade

    Upgrade symfony/yaml to a version that resolves this vulnerability.

    Fixed in 6.4.45
  3. Upgrade

    Upgrade symfony/yaml to a version that resolves this vulnerability.

    Fixed in 7.4.18
  4. Upgrade

    Upgrade symfony/yaml to a version that resolves this vulnerability.

    Fixed in 8.1.6

Event History

Oct 15, 2026
CVE Published
via MITRE·02:57 PM
Data Sourced
via MITRE·02:57 PM
DescriptionWeakness

Frequently Asked Questions

1

Which applications are realistically exposed to unauthenticated requests?

Applications that parse untrusted YAML are affected. In particular, an endpoint using #[MapRequestPayload] is exposed to a single unauthenticated YAML request when the Yaml component is installed and the endpoint does not restrict acceptFormat.

2

What does an attacker need to trigger the issue?

The attacker needs to supply a YAML document containing deeply nested inline collections, such as repeated nested square brackets. No authentication is required for exposed #[MapRequestPayload] endpoints that accept YAML.

3

Are all Symfony YAML parser versions affected?

Affected versions are symfony/yaml before 5.4.54, before 6.4.45 in the 6.x line, before 7.4.18 in the 7.x line, and before 8.1.6 in the 8.x line. The issue also affects versions beginning with 6.0.0-BETA1, 7.0.0-BETA1, and 8.0.0-BETA1 until their respective fixed releases.

4

What can be done if the component cannot be updated immediately?

Prevent untrusted YAML from reaching the parser. For #[MapRequestPayload] endpoints, restrict acceptFormat so YAML content types are not accepted.

5

How does the impact present at runtime?

Parsing a sufficiently deeply nested inline YAML collection can exhaust the PHP stack during lexing. Depending on the PHP version and stack settings, this crashes the process or terminates the request with a fatal error.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203