Symfony: YAML Parser Exponential Memory Allocation via Recursive Collection-Alias Expansion ("Billion Laughs")
symfony · symfony yaml
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| symfony/yaml Packagist |
|
|
symfony · symfony yaml
| Product | Affected | Fixed in |
|---|---|---|
| symfony/yaml Packagist |
|
|
| symfony/symfony Packagist |
|
|
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.52, 6.4.40, 7.4.12, and 8.0.12, Symfony\Component\Yaml\Parser resolved YAML collection aliases recursively, allowing a small untrusted YAML input to expand into a multi-gigabyte structure and exhaust memory. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.
From the CVE record · GitHub_M
Symfony’s YAML parser recursively resolves collection aliases in affected versions. If an application parses untrusted YAML, an attacker can supply a small input that expands into a multi-gigabyte structure and exhausts memory. The input does not specify whether authentication or user interaction is required.
Check applications using Packagist symfony/yaml or symfony/symfony before 5.4.52, from 6.0.0 to before 6.4.40, from 7.0.0 to before 7.4.12, or from 8.0.0 to before 8.0.12.