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.
Published: 2026-07-14
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Wed, 15 Jul 2026 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Symfony
Symfony symfony
Vendors & Products Symfony
Symfony symfony

Wed, 15 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 14 Jul 2026 19:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-15T13:25:32.835Z

Reserved: 2026-05-08T20:08:17.209Z

Link: CVE-2026-45133

cve-icon Vulnrichment

Updated: 2026-07-15T13:25:26.103Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T05:45:03Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-674

    Uncontrolled Recursion

  • CWE-776

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