Intel

AIKIDO-2026-721173

symfony/yaml is vulnerable to Inefficient Regular Expression Complexity

CVE-2026-123792Published 6 days ago
November 5, 2026

75

CVE Score

High

Inefficient Regular Expression Complexity

Are you affected? Scan for Free

TL;DR

Before the fix, Parser matched mapping keys and tags with backtracking patterns that scanned a run of spaces once per character, matched each scalar of a flow collection against a copy of the rest of the collection, and copied each nested block, blank lines included, into a new parser. Anyone who can supply a parsed YAML document — including a JSON payload sent with a YAML content type — could keep a PHP worker busy for seconds or minutes with a small crafted document, using the default flags. The fix makes these patterns possessive or offset-anchored and reads long runs of blank lines in place, so parse time now grows roughly with document size.

How do I fix this?

Upgrade the symfony/yaml or symfony/symfony package to a fixed release on your branch: 5.4.56, 6.4.50, 7.4.23, 8.1.11.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and parse YAML documents whose content others control, such as request payloads or imported files, using the default flags.

Versions

2.0.4 - 5.4.54

Fixed in 5.4.56

6.0.0 - 6.4.49

Fixed in 6.4.50

7.0.0 - 7.4.22

Fixed in 7.4.23

8.0.0 - 8.1.10

Fixed in 8.1.11

Background info

symfony/yaml is vulnerable to Inefficient Regular Expression Complexity in versions 2.0.4 - 5.4.54, 6.0.0 - 6.4.49, 7.0.0 - 7.4.22 and 8.0.0 - 8.1.10.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea