symfony/yaml security advisory
CVE-2026-123792: Exponential and Quadratic Parse Times in the YAML Parser Let a Single Document Hold a Process
CVE-2026-123792 is a high-severity denial of service vulnerability in the PHP package symfony/yaml (CVSS 8.7), published 6 November 2026. It is fixed in 5.4.56, 6.4.50, 7.4.23 and 8.1.11, one per release line; earlier versions on each line are affected. It can be exploited without an account.
published 2026-11-06 · updated 2026-11-10
- Affected versions
- >= 2.0.0, < 5.4.56
>= 6.0.0, < 6.4.50
>= 7.0.0, < 7.4.23
>= 8.0.0, < 8.1.11 - Fixed in
- 5.4.56, 6.4.50, 7.4.23, 8.1.11
- Newest release
- 8.2.0
- Type
- Denial of service
CWE-407, CWE-1333 - Exploited in the wild
- Not on the CISA KEV list
checked 2026-11-29
Also affects
- symfony/symfony >= 2.0.0, < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11 fixed in 5.4.56, 6.4.50, 7.4.23, 8.1.11
Is your symfony/yaml version affected?
Who can exploit CVE-2026-123792
- Access: No account. Anyone who can send a request to an app that uses the affected code.
Technical details
Weakness
Denial of service CWE-407CWE-1333
A request can tie up or crash part of the application.
The site can become slow or unavailable while the attack continues.
General description of this issue type. The advisory below covers this bug.
CVSS 4.0 breakdown
- Attack vector
- Network (remote)
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
CVSS vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
How to fix CVE-2026-123792 in symfony/yaml
- Find the installed version:
composer show symfony/yaml. If you never required it yourself,composer why symfony/yamlshows which package pulls it in. - Update it:
composer update symfony/yaml --with-all-dependencies. You need the fixed version for your release line (5.4.56, 6.4.50, 7.4.23 and 8.1.11). - If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example
"symfony/yaml": "^8.1.11"if you can take that version), or upgrade the package that requires it. - Run
composer audit. It reads the same advisory data and should no longer list CVE-2026-123792. - Commit composer.lock and deploy it. On the server, run
composer install --no-devfrom the lock file, notcomposer update.
If you cannot upgrade yet
- Rate-limit the affected endpoint and cap request body, header and upload sizes at the web server.
- If your app does not use the affected feature, note that in your audit, but still plan the upgrade.
Is your project exposed to CVE-2026-123792?
Check the one package here, or check everything your project installs at once.
- Check symfony/yaml Enter your installed version and compare it with every known symfony/yaml advisory. Check my version
-
Check your whole composer.lock
The free checker compares every locked package with the same advisory data
composer audituses. Check composer.lock
The CVE-2026-123792 advisory
The Symfony Yaml components Inline and Parser, parse some YAML documents inefficiently, so that a small crafted document can take disproportionately long to process, keeping a PHP process busy for seconds or minutes, potentially causing a denial of service in Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11. The parser repeats work it has already done in several places. An embedded mapping in a flow sequence is parsed again for every scalar appended to it, and so are the collections nested in it, so the parse time grows exponentially with the nesting depth. The patterns matching mapping keys and tags scan a run of spaces once per character of the run, and each scalar of a flow collection is matched against a copy of the rest of the collection, so the parse time grows quadratically with the size of the input. Nested blocks are also copied at each nesting level, which consumes memory as well as time. A few other constructs, such as an empty sequence item followed by a blank line or an anchor named 0, trigger similar repeated work. Any code parsing untrusted YAML is affected, with the default flags. In Symfony 7.4 and later, that includes #[MapRequestPayload] when the Yaml component is installed and the endpoint does not restrict acceptFormat. A single unauthenticated request with a YAML content type keeps a PHP worker busy until max_execution_time. JSON documents are valid YAML, so a JSON payload sent with a YAML content type is enough for the flow collection case. In Symfony 6.4, #[MapRequestPayload] accepts YAML only when the application registers a yaml request format.
References
- GitHub security advisory GHSA-hwfg-qwvh-2wfx github.com
- Fix commit 08db22d github.com
- Fix commit 487f63b github.com
- Fix commit 49e0303 github.com
Other symfony/yaml advisories
- high CVE-2026-109413: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process 2026-08-30
- low CVE-2026-45304: YAML Parser Exponential Memory Allocation via Recursive Collection-Alias Expansion ("Billion Laughs") 2026-05-20
- low CVE-2026-45305: YAML Parser ReDoS via Catastrophic Backtracking in Parser::cleanup() Regex 2026-05-20
- low CVE-2026-45133: YAML Parser Stack Exhaustion via Unbounded Recursion in Nested Blocks, Sequences, and Mappings 2026-05-20
- high CVE-2013-1397: Ability to enable/disable object support in YAML parsing and dumping 2013-01-15
- high CVE-2013-1348: Ability to enable/disable PHP parsing in Yaml::parse() 2013-01-15
Related
Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.
Ask about a fixWhere this data comes from
- Affected and fixed versions: the Packagist security advisories API (GitHub Advisory Database and FriendsOfPHP), the same data
composer audituses. Synced 2026-11-29. - Description, score, weakness and references: NIST National Vulnerability Database (NVD), checked 2026-11-26. This product uses data from the NVD API but is not endorsed or certified by the NVD.
- Exploited-in-the-wild status: the CISA Known Exploited Vulnerabilities catalog, checked 2026-11-29.
- Compiled by Daniel Lasek at Laskyr from the sources above. Everything outside the quoted description is our plain-English reading of the record, generated from it. Spot an error? Tell us.