CVE-2026-45305
Published:May 31, 2026
Updated:May 31, 2026
Description "Symfony\Component\Yaml\Parser::cleanup()" strips the optional "%YAML" directive header, leading comments, and document start/end markers before parsing. The original regexes contained overlapping quantifiers, most notably "'#^%YAML[: ][\d.]+.\n#u'", whose "[\d.]+" and "." overlap on the dot, that exhibit catastrophic backtracking on crafted input. A single oversized "%YAML" directive header (or comment / document-marker line) makes the parser hang for an arbitrarily long time, denying service. Resolution The four regexes in "Parser::cleanup()" (YAML directive header, leading comments, document-start marker, document-end marker) have been rewritten with possessive quantifiers and unambiguous character classes so backtracking cannot occur. The patch for this issue is available "here" (https://github.com/symfony/symfony/commit/9749cd43c5e09b3735093623670b21b9d8a056cb) for branch 5.4. Credits Symfony would like to thank Pietro Tirenna (Shielder) for reporting the issue and Nicolas Grekas for fixing it.
Affected Packages
https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v7.4.0 <v7.4.12Fix Suggestion:
Update to version v7.4.12https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v8.0.0 <v8.0.12Fix Suggestion:
Update to version v8.0.12https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v2.0.0BETA1 <v5.4.52Fix Suggestion:
Update to version v5.4.52https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v6.4.0 <v6.4.40Fix Suggestion:
Update to version v6.4.40symfony/symfony (PHP):
Affected version(s) >=v7.0.0 <v7.4.12Fix Suggestion:
Update to version v7.4.12symfony/yaml (PHP):
Affected version(s) >=dev-issue-8145 <v5.4.52Fix Suggestion:
Update to version v5.4.52symfony/yaml (PHP):
Affected version(s) >=v6.0.0 <v6.4.40Fix Suggestion:
Update to version v6.4.40symfony/symfony (PHP):
Affected version(s) >=dev-binary-options <v5.4.52Fix Suggestion:
Update to version v5.4.52symfony/yaml (PHP):
Affected version(s) >=v8.0.0 <v8.0.12Fix Suggestion:
Update to version v8.0.12symfony/symfony (PHP):
Affected version(s) >=v6.0.0 <v6.4.40Fix Suggestion:
Update to version v6.4.40symfony/yaml (PHP):
Affected version(s) >=v7.0.0 <v7.4.12Fix Suggestion:
Update to version v7.4.12symfony/symfony (PHP):
Affected version(s) >=v8.0.0 <v8.0.12Fix Suggestion:
Update to version v8.0.12Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
Exploit Maturity
UNREPORTED
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
Inefficient Regular Expression Complexity