Advisory

GHSA-v42g-7q2x-cw32

Also known as: None

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.

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-06-07 22:25 UTC
Modified
2024-12-04 05:41 UTC

Affected packages and fixes

zendframework/zendframework1

Packagist · All systems

Affected

  • introduced 1.12.0, fixed 1.12.16 (ecosystem)

Fixed versions

1.12.16

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences