PT-2026-114952 · Sensiolabs+1 · Symfony+1
CVSS v4.0
8.7
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Name of the Vulnerable Software and Affected Versions
symfony/yaml versions 5.4.0 through 5.4.53
symfony/yaml versions 6.0.0-BETA1 through 6.4.44
symfony/yaml versions 7.0.0-BETA1 through 7.4.17
symfony/yaml versions 8.0.0-BETA1 through 8.1.5
Description
The
YamlParser::lexInlineStructure() function recurses through lexInlineMapping() and lexInlineSequence() for every { and [ in an inline collection without respecting the maxNestingLevel boundary. A YAML document containing deeply nested inline collections can exhaust the stack during lexing, leading to a process crash or a fatal error depending on the PHP version and stack settings. This issue affects any code parsing untrusted YAML, including the use of #[MapRequestPayload] when the Yaml component is installed and the endpoint does not restrict acceptFormat, allowing a single unauthenticated request with a YAML content type to trigger the failure.Recommendations
Update symfony/yaml to version 5.4.54 or later.
Update symfony/yaml to version 6.4.45 or later.
Update symfony/yaml to version 7.4.18 or later.
Update symfony/yaml to version 8.1.6 or later.
Exploit
Fix
Uncontrolled Recursion
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Symfony
Yaml