Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
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.12
Fix Suggestion:
Update to version v7.4.12
https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v8.0.0 <v8.0.12
Fix Suggestion:
Update to version v8.0.12
https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v2.0.0BETA1 <v5.4.52
Fix Suggestion:
Update to version v5.4.52
https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v6.4.0 <v6.4.40
Fix Suggestion:
Update to version v6.4.40
symfony/symfony (PHP):
Affected version(s) >=v7.0.0 <v7.4.12
Fix Suggestion:
Update to version v7.4.12
symfony/yaml (PHP):
Affected version(s) >=dev-issue-8145 <v5.4.52
Fix Suggestion:
Update to version v5.4.52
symfony/yaml (PHP):
Affected version(s) >=v6.0.0 <v6.4.40
Fix Suggestion:
Update to version v6.4.40
symfony/symfony (PHP):
Affected version(s) >=dev-binary-options <v5.4.52
Fix Suggestion:
Update to version v5.4.52
symfony/yaml (PHP):
Affected version(s) >=v8.0.0 <v8.0.12
Fix Suggestion:
Update to version v8.0.12
symfony/symfony (PHP):
Affected version(s) >=v6.0.0 <v6.4.40
Fix Suggestion:
Update to version v6.4.40
symfony/yaml (PHP):
Affected version(s) >=v7.0.0 <v7.4.12
Fix Suggestion:
Update to version v7.4.12
symfony/symfony (PHP):
Affected version(s) >=v8.0.0 <v8.0.12
Fix Suggestion:
Update to version v8.0.12
Do you need more information?
Contact Us
CVSS 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