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, PdoAdapter::doClear() builds a DELETE statement using a namespace derived from the caller-supplied $prefix without binding or escaping it, allowing a caller able to influence $prefix to break out of the LIKE literal and alter query semantics or deletion scope. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.
Published: 2026-07-14
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

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, PdoAdapter::doClear() builds a DELETE statement using a namespace derived from the caller‑supplied $prefix without binding or escaping it, allowing a caller able to influence $prefix to break out of the LIKE literal and alter query semantics or deletion scope. Because the $prefix is interpolated directly into the SQL without binding or escaping, a caller who can influence $prefix can break out of the intended LIKE literal, alter the query’s semantics, or change the scope of rows deleted. This vulnerability permits arbitrary deletion of cache rows and could compromise data integrity if appropriate authorization controls are bypassed. The issue is a classic example of unsanitized input leading to a SQL injection flaw and is classified as CWE‑89. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.

Affected Systems

Symfony framework components, including the cache component, released before 5.4.52, 6.4.40, 7.4.12, or 8.0.12. Any application using these older Symfony versions with dynamic cache prefixes is potentially affected.

Risk and Exploitability

The CVSS score is 6.3, indicating a moderate severity. The EPSS score is below 1 %, meaning documented exploitation is unlikely at this time, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is inferred to be through application code that invokes doClear() with a caller‑supplied prefix, so the risk depends on how the prefix is sourced. If the prefix originates from untrusted user input or external systems, an attacker can construct a payload to delete arbitrary rows from tables that share the same prefix namespace.

Generated by OpenCVE AI on August 1, 2026 at 09:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Symfony to at least v5.4.52, v6.4.40, v7.4.12, or v8.0.12, which contain the fixed PdoAdapter implementation.
  • If an upgrade is not immediately possible, ensure that the $prefix parameter used in doClear() is derived only from trusted internal configuration rather than external input.
  • After updating or hardening the prefix source, audit the database for any unintended deletions that may have occurred during the vulnerability period.

Generated by OpenCVE AI on August 1, 2026 at 09:22 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-6qh9-h6wf-jgqc Symfony Vulnerable to SQL Injection in PdoAdapter::doClear() via Unsanitized $prefix
History

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

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

Tue, 14 Jul 2026 20: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 18:45: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, PdoAdapter::doClear() builds a DELETE statement using a namespace derived from the caller-supplied $prefix without binding or escaping it, allowing a caller able to influence $prefix to break out of the LIKE literal and alter query semantics or deletion scope. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.
Title Symfony: SQL Injection in PdoAdapter::doClear() via Unsanitized $prefix
Weaknesses CWE-89
References
Metrics cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-14T19:14:47.342Z

Reserved: 2026-05-08T18:45:10.096Z

Link: CVE-2026-45073

cve-icon Vulnrichment

Updated: 2026-07-14T19:14:42.535Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T09:30:03Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')