Symfony: SQL Injection in PdoAdapter::doClear() via Unsanitized $prefix
symfony · cache symfony
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| symfony/cache Packagist |
|
|
symfony · cache symfony
| Product | Affected | Fixed in |
|---|---|---|
| symfony/cache Packagist |
|
|
| symfony/symfony Packagist |
|
|
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.
From the CVE record · GitHub_M
PdoAdapter::doClear() inserts a namespace derived from the caller-supplied $prefix into a DELETE statement without binding or escaping it. An attacker who can influence $prefix may alter the query’s semantics or deletion scope. The input does not establish whether exploitation requires network access, authentication, or user interaction.
Teams using Packagist symfony/cache or symfony/symfony versions below 5.4.52, from 6.0.0 to below 6.4.40, from 7.0.0 to below 7.4.12, or from 8.0.0 to below 8.0.12 should check their installations.