CVE-2026-45304
Published:May 31, 2026
Updated:May 31, 2026
Description "Symfony\Component\Yaml\Parser" resolves YAML aliases ("*anchor") during parsing. Aliases that reference collections (arrays, "stdClass", "TaggedValue"-wrapped collections) can themselves point to other collections containing aliases, creating exponential expansion at resolution time. A small input can blow up into a multi-gigabyte structure and exhaust memory: the classic "Billion Laughs" denial-of-service against any parser exposed to untrusted YAML. Resolution The "Parser" now counts collection alias resolutions in a shared "ParserState" object, with a default limit of 128, following the "SnakeYAML model" (https://github.com/snakeyaml/snakeyaml/blob/master/src/main/java/org/yaml/snakeyaml/LoaderOptions.java). Scalar aliases remain unrestricted since they cannot drive exponential growth. The limit is configurable via a new "$maxAliasesForCollections" argument on "Parser::__construct()", "Yaml::parse()" and "Yaml::parseFile()". A new "Yaml::PARSE_EXCEPTION_ON_ALIAS" flag also rejects all aliases outright when parsing fully untrusted input. The patch for this issue is available "here" (https://github.com/symfony/symfony/commit/e77391b2e4f18821198f010d573674c8ed4a970a) 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) >=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) >=v7.4.0 <v7.4.12Fix Suggestion:
Update to version v7.4.12https://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) >=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) >=v8.0.0 <v8.0.12Fix Suggestion:
Update to version v8.0.12symfony/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/symfony (PHP):
Affected version(s) >=dev-binary-options <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/yaml (PHP):
Affected version(s) >=dev-issue-8145 <v5.4.52Fix Suggestion:
Update to version v5.4.52Related 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)
Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')