Skip to content
Laskyr

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

8.7 High CVSS 4.0

Fixed in symfony/yaml 5.4.56, 6.4.50, 7.4.23 and 8.1.11

This denial of service issue affects symfony/yaml in 4 release lines: >= 2.0.0, < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11. Upgrade to the fixed version for your release line (5.4.56, 6.4.50, 7.4.23 and 8.1.11). The newest release, 8.2.0, is not affected.

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

The same advisory covers another package in our list. Fix whichever one your project installs.

Is your symfony/yaml version affected?

Run composer show symfony/yaml in your project, then enter the version. We check it against this and every other known symfony/yaml advisory.

Who can exploit CVE-2026-123792

Your app is only exposed if it uses the affected part of symfony/yaml. The advisory below says which part that is. If you are not sure, upgrade anyway: it costs less than finding out.

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

  1. Find the installed version: composer show symfony/yaml. If you never required it yourself, composer why symfony/yaml shows which package pulls it in.
  2. 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).
  3. 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.
  4. Run composer audit. It reads the same advisory data and should no longer list CVE-2026-123792.
  5. Commit composer.lock and deploy it. On the server, run composer install --no-dev from the lock file, not composer update.

If you cannot upgrade yet

General hardening for denial of service issues while the upgrade waits. None of it replaces the fix.

Is your project exposed to CVE-2026-123792?

Check the one package here, or check everything your project installs at once.

  1. Check symfony/yaml Enter your installed version and compare it with every known symfony/yaml advisory. Check my version
  2. Check your whole composer.lock The free checker compares every locked package with the same advisory data composer audit uses. 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.

Description from the CVE record, via the NVD entry for CVE-2026-123792. Advisory title: “Exponential and Quadratic Parse Times in the YAML Parser Let a Single Document Hold a Process”.

References

Other symfony/yaml advisories

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 fix

Where this data comes from

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit

The box is optional and does not affect the kit. Privacy policy.