Zendframework1 potential SQL injection vector using null byte for PDO (MsSql, SQLite)
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-89.
Summary
The PDO adapters of Zend Framework 1 do not filter null bytes values in SQL statements. A PDO adapter can treat null bytes in a query as a string terminator, allowing an attacker to add arbitrary SQL following a null byte, and thus create a SQL injection. We tested and verified the null byte injection using pdo_dblib (FreeTDS) on a Linux environment to access a remote Microsoft SQL Server, and also tested against and noted the vector against pdo_sqlite.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | zendframework/zendframework1 (Packagist) | 1.12.0 to before 1.12.16 | 1.12.16 | Patch available | GHSA-v42g-7q2x-cw32 |
- zendframework/zendframework1 (Packagist) Vendor— Affected 1.12.0 to before 1.12.16 Fixed in 1.12.16 Patch available GHSA-v42g-7q2x-cw32
Remediation
- Fix · GHSA-v42g-7q2x-cw32 zendframework/zendframework1 (Packagist) Fixed in 1.12.16 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-v42g-7q2x-cw32
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences