{"id":"GHSA-v42g-7q2x-cw32","aliases":["GHSA-v42g-7q2x-cw32"],"related":[],"kind":"vulnerability","state":"published","title":"Zendframework1 potential SQL injection vector using null byte for PDO (MsSql, SQLite)","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.\n\nWe 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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\nWe 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.","format":"markdown","source":"ghsa"}],"published":"2024-06-07T22:25:43.000Z","modified":"2024-12-04T05:41:15.523Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"1.12.0","status":"affected","fixed":"1.12.16"}],"ecosystem":"Packagist","package":"zendframework/zendframework1","purl":"pkg:composer/zendframework/zendframework1","source":"ghsa"}],"references":[{"url":"https://framework.zend.com/security/advisory/ZF2015-08","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2015-08.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zf1","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v42g-7q2x-cw32","url":"https://github.com/advisories/GHSA-v42g-7q2x-cw32","licence":"CC-BY-4.0","modified":"2024-12-04T05:41:15.523Z"}],"updatedAt":"2026-11-25T22:56:33.055Z"}