PT-2026-44142 · Symfony · Symfony

CVE-2026-45073

·

Published

2026-05-21

·

Updated

2026-07-14

CVSS v3.1

7.3

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Name of the Vulnerable Software and Affected Versions Symfony versions prior to 5.4
Description The SymfonyComponentCacheAdapterPdoAdapter contains a flaw in the clear($prefix) method (inherited from AbstractAdapterTrait). In the non-versioning code path, the $prefix variable is concatenated into a namespace and passed to PdoAdapter::doClear(), which constructs a SQL query using a LIKE clause. Because the $namespace value is interpolated directly into the SQL text and executed via PDO::exec() without being bound, a user who can influence the $prefix variable can perform SQL injection. This allows an attacker to expand the deletion scope beyond the intended prefix to arbitrary rows or alter the query semantics.
Recommendations Update to version 5.4 or later. As a temporary workaround, restrict the use of the clear($prefix) method to ensure the $prefix variable does not contain characters outside the range [-+.A-Za-z0-9].

Exploit

Fix

SQL injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-45073
GHSA-6QH9-H6WF-JGQC

Affected Products

Symfony