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, Symfony\Component\Yaml\Parser::cleanup() used regular expressions with overlapping quantifiers for YAML directive, comment, and document marker cleanup, allowing crafted input to make parsing hang for an arbitrarily long time. 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.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Symfony’s YAML parser uses a regular expression in the cleanup() method to strip directives, comments, and document markers. The expression contains overlapping quantifiers that trigger catastrophic backtracking when the parser processes a specially crafted YAML file. The result is an arbitrarily long processing time that can stall or crash the application, leading to a denial‑of‑service condition. This weakness is identified as CWE‑1333, a regex under‑flow vulnerability.

Affected Systems

The vulnerability affects the Symfony framework and its Yaml component. Versions earlier than 5.4.52, 6.4.40, 7.4.12, or 8.0.12 are impacted. Any Symfony‑based web or console application that loads untrusted YAML content from these versions is potentially exposed.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity, yet the EPSS score of less than 1% shows a low probability of exploitation in the current context, and the issue is not listed in the CISA KEV catalog. Likely attack vectors involve an attacker supplying malicious YAML where it is accepted, such as configuration files or API payloads. The vulnerability, a regex under‑flow (CWE‑1333), can be triggered remotely and would lead primarily to server slow‑downs or timeouts, without directly compromising confidentiality or integrity.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Symfony framework and its Yaml component to at least version 5.4.52, 6.4.40, 7.4.12, or 8.0.12 to receive the fixed regular expression.
  • If an upgrade is not immediately possible, validate YAML input before parsing by enforcing size limits or rejecting unusually long or nested documents.
  • Wrap the YAML parsing routine in a timeout or execution‑time guard to prevent the application from hanging during a ReDoS attack.

Generated by OpenCVE AI on July 31, 2026 at 05:42 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-9frc-8383-795m Symfony's YAML Parser has a ReDoS via Catastrophic Backtracking in Parser::cleanup() Regex
History

Mon, 27 Jul 2026 15:30:00 +0000

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

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

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', '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, Symfony\Component\Yaml\Parser::cleanup() used regular expressions with overlapping quantifiers for YAML directive, comment, and document marker cleanup, allowing crafted input to make parsing hang for an arbitrarily long time. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.
Title Symfony: YAML Parser ReDoS via Catastrophic Backtracking in Parser::cleanup() Regex
Weaknesses CWE-1333
References
Metrics cvssV4_0

{'score': 8.7, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-15T14:03:58.116Z

Reserved: 2026-05-11T20:14:43.202Z

Link: CVE-2026-45305

cve-icon Vulnrichment

Updated: 2026-07-15T14:03:54.863Z

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