CVE-2026-45133
Published:May 31, 2026
Updated:May 31, 2026
Description "Symfony\Component\Yaml\Parser" is the entry point for parsing YAML strings into PHP values via "Yaml::parse()". When the parser is exposed to attacker-controlled input, deeply nested mappings or sequences cause both the block-level ("Parser::parseBlock()") and inline ("Inline::parseSequence()" / "Inline::parseMapping()") parsers to recurse without a depth limit. A crafted document exhausts the PHP stack and crashes the worker. Resolution The "Parser" now tracks recursion depth in a shared "ParserState" object across both block-level and inline parsing, with a default limit of 128. The limit is configurable via a new "$maxNestingLevel" argument on "Parser::__construct()", "Yaml::parse()" and "Yaml::parseFile()". The patch for this issue is available "here" (https://github.com/symfony/symfony/commit/914f427ed9630ddb3904dafba763e53d9f133fe3) 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) >=v6.4.0 <v6.4.39Fix Suggestion:
Update to version v6.4.39https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v8.0.0 <v8.0.11Fix Suggestion:
Update to version v8.0.11https://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) >=v7.4.0 <v7.4.11Fix Suggestion:
Update to version v7.4.11symfony/yaml (PHP):
Affected version(s) >=v6.0.0 <v6.4.40Fix Suggestion:
Update to version v6.4.40symfony/symfony (PHP):
Affected version(s) >=v8.0.0 <v8.0.12Fix Suggestion:
Update to version v8.0.12symfony/symfony (PHP):
Affected version(s) >=dev-binary-options <v5.4.52Fix Suggestion:
Update to version v5.4.52symfony/symfony (PHP):
Affected version(s) >=v7.0.0 <v7.4.12Fix Suggestion:
Update to version v7.4.12symfony/yaml (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) >=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.40Related 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