CVE-2026-45073
Analyzed Analyzed - Analysis Complete

SQL Injection in Symfony Framework

Vulnerability report for CVE-2026-45073, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-14

Last updated on: 2026-07-15

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-14
Last Modified
2026-07-15
Generated
2026-08-04
AI Q&A
2026-07-15
EPSS Evaluated
2026-08-02
NVD
EUVD

Affected Vendors & Products

Showing 4 associated CPEs
Vendor Product Version / Range
sensiolabs symfony From 7.0.0 (inc) to 7.4.12 (exc)
sensiolabs symfony From 8.0.0 (inc) to 8.0.12 (exc)
sensiolabs symfony to 5.4.52 (exc)
sensiolabs symfony From 6.0.0 (inc) to 6.4.40 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a SQL injection vulnerability in Symfony's PdoAdapter::doClear() method. The issue occurs because the $prefix parameter is directly concatenated into an SQL DELETE statement without proper sanitization. Attackers can manipulate the $prefix to include SQL special characters like quotes or wildcards, altering the query's behavior or deleting unintended data.

Detection Guidance

Check Symfony version with: composer show symfony/cache. If using versions before 5.4.52, 6.4.40, 7.4.12, or 8.0.12, the system is vulnerable. Review application logs for unusual cache clearing operations or SQL errors.

Impact Analysis

An attacker could exploit this to delete cache entries outside the intended scope, potentially causing application errors or data loss. They might also manipulate the query to access or modify unauthorized data if the application relies on the cache for sensitive operations.

Compliance Impact

This vulnerability could lead to unauthorized data access or deletion, violating GDPR's integrity and confidentiality principles or HIPAA's safeguards for protected health information. Organizations using vulnerable Symfony versions may face compliance violations if exploited.

Mitigation Strategies

Upgrade Symfony cache component to versions 5.4.52, 6.4.40, 7.4.12, or 8.0.12 or later. If immediate upgrade is not possible, restrict user input to the prefix parameter to only alphanumeric characters and validate inputs strictly.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-45073. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart