CVE-2026-45073: Symfony SQL injection in PdoAdapter cache component

CVE-2026-45073 · Severity: medium · CVSS 4 · Published 2026-07-14

Symfony is a popular PHP framework used to build web applications. A security flaw in its database-backed caching component could allow an attacker to manipulate database queries. This could lead to the unauthorized deletion of data or unexpected changes to how the application manages its stored information.

Technologies: symfony/cache (Packagist), symfony/symfony (Packagist). Vendors: Packagist, Symfony.

Quick answers

Is CVE-2026-45073 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-45073 being exploited in the wild.
How severe is CVE-2026-45073?
Medium severity, with a CVSS score of 4, published 14 July 2026.
Which products and versions are affected?
symfony/cache (Packagist) ECOSYSTEM:introduced=0,fixed=5.4.52; symfony/symfony (Packagist) ECOSYSTEM:introduced=0,fixed=5.4.52; Symfony Cache < 5.4.52, >= 6.0.0 < 6.4.40, >= 7.0.0 < 7.4.12, >= 8.0.0 < 8.0.12.
Is there a fix for CVE-2026-45073?
Yes. symfony/cache (Packagist): upgrade to 5.4.52 or later; symfony/symfony (Packagist): upgrade to 5.4.52 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-45073 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-45073?
Check whether you run symfony/cache (Packagist), symfony/symfony (Packagist) or Symfony Cache at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • symfony/cache (Packagist): upgrade to 5.4.52 or later
    composer require symfony/cache:^5.4.52
  • symfony/symfony (Packagist): upgrade to 5.4.52 or later
    composer require symfony/symfony:^5.4.52

Technical details

An SQL injection vulnerability exists in the Symfony Cache component's PdoAdapter. The `doClear()` method constructs a SQL DELETE statement by concatenating a user-supplied `$prefix` variable directly into a LIKE clause without proper escaping or parameter binding. If an attacker can influence the prefix value, they can break out of the intended query structure to modify the deletion scope or execute arbitrary SQL logic. This issue affects Symfony versions prior to 5.4.52, 6.4.40, 7.4.12, and 8.0.12. The fix involves validating and properly handling the prefix input in the AbstractAdapter and PdoAdapter.

Affected products

  • Symfony Symfony < 5.4.52, >= 6.0.0-BETA1, < 6.4.40, >= 7.0.0-BETA1, < 7.4.12, >= 8.0.0-BETA1, < 8.0.12

Identifiers

  • CVE-2026-45073
  • GHSA-6qh9-h6wf-jgqc

Timeline

  • 2026-07-14: disclosed
  • 2026-07-14: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.