CVE-2026-45133

Symfony: [Yaml] Harden the parser when handling untrusted input

Published Jul 14, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
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, 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. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.

Analysis

AI-generated

Technical impact

Symfony’s YAML parser fails to limit recursion depth when handling deeply nested mappings or sequences supplied from untrusted input. The parser’s block‑level and inline parsing functions can recurse recursively without an upper bound, ultimately exhausting the PHP stack and crashing the worker process. This results in a denial of service; the application becomes unavailable until the process is restarted. The issue is resolved in Symfony releases 5.4.52, 6.4.40, 7.4.12, and 8.0.12.

Affected Systems

Any application or component that uses Symfony prior to 5.4.52, 6.4.40, 7.4.12, or 8.0.12 and parses YAML input—such as web applications, console commands, or other services that accept YAML payloads—is impacted. The vulnerability resides in the symfony/symfony package’s Yaml component.

Risk and Exploitability

The CVSS score of 8.2 indicates a high risk of denial of service, yet the EPSS score of less than 1% and absence from the CISA KEV catalog suggest limited current exploitation. The likely attack vector is any mechanism that allows an attacker to supply arbitrary YAML content to the parser, such as uploading a malicious file, submitting a crafted API payload, or providing console input. A successful attack exhausts the PHP stack, crashes the application, and disrupts service availability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Symfony releases, which include fixes up to 5.4.52, 6.4.40, 7.4.12, and 8.0.12.
  • If an immediate upgrade is not possible, restrict the Symfony Yaml component to trusted data sources and avoid parsing external YAML files or payloads.
  • Alternatively, implement custom depth limits in your code or disable the Yaml component for untrusted input to prevent excessive recursion.

Generated by OpenCVE AI on July 31, 2026 at 05:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6312-1 symfony security update
Debian DSA Debian DSA DSA-6317-1 symfony security update
Github GHSA Github GHSA GHSA-c2p3-7m5p-cv8x Symfony hardened the parser when handling untrusted input
History
Type Values Removed Values Added
First Time appeared Symfony
Symfony symfony
Vendors & Products Symfony
Symfony symfony
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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, 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. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.
Title Symfony: [Yaml] Harden the parser when handling untrusted input
Weaknesses CWE-1333
CWE-674
CWE-776
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-674

    Uncontrolled Recursion

  • CWE-776

    Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 1:25 PM
Reserved
May 8, 2026, 8:08 PM
Status
Analyzed
Published
Jul 14, 2026, 7:17 PM
Modified
Jul 15, 2026, 2:54 PM