CVE-2026-45073
published medium CVSS 4.0 · 6.3Symfony: SQL Injection in PdoAdapter::doClear() via Unsanitized $prefix
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 | Affected | Not stated | GitHub_M |
| cache | — | 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 | Affected | Not stated | GitHub_M |
| Debian | bookworm | symfony | Advisory build | 5.4.53+dfsg-0+deb12u1 | DSA-6317-1 |
| Debian | trixie | symfony | Advisory build | 6.4.41+dfsg-0+deb13u1 | DSA-6312-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| symfony | symfony | < 5.4.52 (affected)>= 6.0.0-BETA1, < 6.4.40 (affected)>= 7.0.0-BETA1, < 7.4.12 (affected)>= 8.0.0-BETA1, < 8.0.12 (affected) | GitHub_M · cna |
| cache | symfony | < 5.4.52 (affected)>= 6.0.0-BETA1, < 6.4.40 (affected)>= 7.0.0-BETA1, < 7.4.12 (affected)>= 8.0.0-BETA1, < 8.0.12 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
6- https://github.com/symfony/symfony/commit/ec50b799d79ebe24561f29351c1efcb6da95c9b1
- https://github.com/symfony/symfony/releases/tag/v5.4.52
- https://github.com/symfony/symfony/releases/tag/v6.4.40
- https://github.com/symfony/symfony/releases/tag/v7.4.12
- https://github.com/symfony/symfony/releases/tag/v8.0.12
- https://github.com/symfony/symfony/security/advisories/GHSA-6qh9-h6wf-jgqc
Provider assertions
2GitHub_M · cna
Symfony: SQL Injection in PdoAdapter::doClear() via Unsanitized $prefix
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 263b981fdb874cfb32e137fa8b060ebdf22291d58ab65cbb4aed2c2a01ed1cde
- Ingested
- 23 Sep 2026, 09:15:36 UTC
- Source record
- Official CVE record