# GHSA-v42g-7q2x-cw32: Zendframework1 potential SQL injection vector using null byte for PDO (MsSql, SQLite)

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-06-07T22:25:43.000Z
- Modified: 2024-12-04T05:41:15.523Z
- Weaknesses: CWE-89

## 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.

(As written by GitHub Advisory Database.)

## Affected

- zendframework/zendframework1 (Packagist): from 1.12.0 before 1.12.16

## References

- <https://framework.zend.com/security/advisory/ZF2015-08> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2015-08.yaml> (web)
- <https://github.com/zendframework/zf1> (package)

## Sources

- GitHub Advisory Database: [GHSA-v42g-7q2x-cw32](https://github.com/advisories/GHSA-v42g-7q2x-cw32), CC-BY-4.0, modified 2024-12-04

---

Page: https://cve.day/GHSA-v42g-7q2x-cw32 · Whole record: https://cve.day/GHSA-v42g-7q2x-cw32.json · Rebuilt by cve.day 2026-11-25T22:56:33.055Z
