{"id":"GHSA-v42g-7q2x-cw32","summary":"Zendframework1 potential SQL injection vector using null byte for PDO (MsSql, SQLite)","details":"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.","modified":"2024-12-04T05:41:15.523998Z","published":"2024-06-07T22:25:43Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-06-07T22:25:43Z","nvd_published_at":null,"cwe_ids":["CWE-89"],"severity":"CRITICAL"},"references":[{"type":"WEB","url":"https://framework.zend.com/security/advisory/ZF2015-08"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2015-08.yaml"},{"type":"PACKAGE","url":"https://github.com/zendframework/zf1"}],"affected":[{"package":{"name":"zendframework/zendframework1","ecosystem":"Packagist","purl":"pkg:composer/zendframework/zendframework1"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.12.16"}]}],"versions":["1.12.0","1.12.1","1.12.10","1.12.11","1.12.12","1.12.13","1.12.14","1.12.15","1.12.2","1.12.3","1.12.4","1.12.5","1.12.6","1.12.7","1.12.8","1.12.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-v42g-7q2x-cw32/GHSA-v42g-7q2x-cw32.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}