Affected versions
Version ranges need review.
Composerzendframework/zendframework1
- Affected versions
- >= 1.12.0, < 1.12.16
- Fixed version
- 1.12.16
Composerzendframework/zendframework1
- Affected versions
- >=1.12.0,<1.12.4
- Fixed version
- Not reported
Description
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.
Links
- https://framework.zend.com/security/advisory/ZF2014-01
- https://framework.zend.com/security/advisory/ZF2015-08
- https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2015-08.yaml
- https://github.com/advisories/GHSA-v42g-7q2x-cw32
- https://github.com/zendframework/zf1

