sqlparse through 0.6.0 PHP Code Injection via output_format='php'
sqlparse through 0.6.0 contains a PHP code injection vulnerability that allows attackers to inject PHP expressions by supplying SQL text containing unescaped dollar signs. Attackers can embed ${expr} or {${expr}} sequences that OutputPHPFilter places in double-quoted strings, executing arbitrary PHP code when the generated snippet runs.
CVE-2026-112307
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-112307
sqlparse
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://github.com/andialbrecht/sqlparse",
"vendor": "andialbrecht",
"product": "sqlparse",
"versions": [
{
"status": "affected",
"version": "0",
"versionType": "semver",
"lessThanOrEqual": "0.6.0"
}
],
"packageURL": "pkg:pypi/sqlparse",
"collectionURL": "https://pypi.org",
"defaultStatus": "unaffected"
}
]- Related CVEs
- CVE-2026-112307
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #39021 · Revision 1
- Added to Heist Feed
- Publisher date