symfony/yaml is vulnerable to Inefficient Regular Expression Complexity
75
CVE Score
High
Inefficient Regular Expression Complexity
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.
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.
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.
2.0.4 - 5.4.54
Fixed in 5.4.566.0.0 - 6.4.49
Fixed in 6.4.507.0.0 - 7.4.22
Fixed in 7.4.238.0.0 - 8.1.10
Fixed in 8.1.11symfony/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.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.