CVE-2026-45133: Symfony hardened the parser when handling untrusted input
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.
References
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-45133.yaml
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/yaml/CVE-2026-45133.yaml
- github.com/advisories/GHSA-c2p3-7m5p-cv8x
- github.com/symfony/symfony/commit/914f427ed9630ddb3904dafba763e53d9f133fe3
- github.com/symfony/symfony/security/advisories/GHSA-c2p3-7m5p-cv8x
- nvd.nist.gov/vuln/detail/CVE-2026-45133
- symfony.com/cve-2026-45133
Code Behaviors & Features
Detect and mitigate CVE-2026-45133 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →