{"id":"GHSA-v42g-7q2x-cw32","aliases":[],"title":"Zendframework1 potential SQL injection vector using null byte for PDO (MsSql, SQLite)","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.\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.","severity":"critical","score":9.8,"published":"2024-06-07T22:25:43.000Z","modified":"2024-12-04T05:41:15.523Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"zendframework/zendframework1","ranges":[{"events":[{"introduced":"1.12.0"},{"fixed":"1.12.16"}],"type":"ECOSYSTEM"}],"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"],"fixed":["1.12.16"]}],"sourceAffected":[],"references":["https://framework.zend.com/security/advisory/ZF2015-08","https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2015-08.yaml","https://github.com/zendframework/zf1"],"sources":[{"name":"OSV","id":"GHSA-v42g-7q2x-cw32","modified":"2024-12-04T05:41:15.523998Z","url":"https://osv.dev/vulnerability/GHSA-v42g-7q2x-cw32"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8}]}