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 pdodblib (FreeTDS) on a Linux environment to access a remote Microsoft SQL Server, and also tested against and noted the vector against pdosqlite.
{
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2024-06-07T22:25:43Z",
"severity": "CRITICAL",
"cwe_ids": [
"CWE-89"
]
}