Skip to content

CVE-2025-14179 SQL injection in pdo_firebird via NUL bytes in quoted strings

HighCVSS 7.4 EPSS 0.44%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
PHPUbuntuDebianRed Hat

Description

In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the PDO Firebird driver improperly handles NUL bytes when preparing SQL queries. During token-by-token query construction, a string token containing a NUL byte is copied via strncat(), which stops at the NUL byte, dropping the closing quote and causing subsequent SQL tokens to be interpreted as part of the string. This allows SQL injection when attacker-controlled values are quoted via PDO::quote() and embedded in SQL statements.

Upgrade path

12 packages: 8 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
PHP(Azure Linux 3.0) All versions No fix listed No fix yet
redhat enterprise linux = 6; = 7; = 8; = 9 +2 more No fix listed No fix yet
redhat/php(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
debian/php8.2(Debian 12) < 8.2.31-1~deb12u1; = 8.2.5-2; = 8.2.7-1; = 8.2.7-1.1 +23 more 8.2.31-1~deb12u1 Fixed
debian/php8.4(Debian 13) < 8.4.21-1~deb13u1; = 8.4.11-1; = 8.4.16-1; = 8.4.16-1~deb13u1 +1 more 8.4.21-1~deb13u1 Fixed
debian/php8.4(Debian 14) < 8.4.21-1; = 8.4.11-1; = 8.4.16-1; = 8.4.16-1~deb13u1 +2 more 8.4.21-1 Fixed
PHP < 8.2.31; < 8.3.31; < 8.4.21; < 8.5.6 +4 more 8.2.31, 8.3.31, 8.4.21, 8.5.6 Fixed
PHP(Azure Linux 4.0) < 0:8.4.26-5.azl4 0:8.4.26-5.azl4 Fixed
ubuntu/php8.1(Ubuntu 22.04) < 8.1.2-1ubuntu2.24 8.1.2-1ubuntu2.24 Fixed
ubuntu/php8.3(Ubuntu 24.04) < 8.3.6-0ubuntu0.24.04.9 8.3.6-0ubuntu0.24.04.9 Fixed
ubuntu/php8.5(Ubuntu 26.04) < 8.5.4-0ubuntu1.1 8.5.4-0ubuntu1.1 Fixed
redhat hummingbird = 1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/php8.2(Debian:12) < 8.2.31-1~deb12u1 8.2.31-1~deb12u1
debian/php8.2(Debian:12) = 8.2.10-1 No fix listed
debian/php8.2(Debian:12) = 8.2.10-2 No fix listed
debian/php8.2(Debian:12) = 8.2.12-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-1 No fix listed
debian/php8.2(Debian:12) = 8.2.16-2 No fix listed
debian/php8.2(Debian:12) = 8.2.17-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1 No fix listed
debian/php8.2(Debian:12) = 8.2.18-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.20-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.20-2 No fix listed
debian/php8.2(Debian:12) = 8.2.20-3 No fix listed
debian/php8.2(Debian:12) = 8.2.21-1 No fix listed
debian/php8.2(Debian:12) = 8.2.23-1 No fix listed
debian/php8.2(Debian:12) = 8.2.24-1 No fix listed
debian/php8.2(Debian:12) = 8.2.24-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.26-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.26-4 No fix listed
debian/php8.2(Debian:12) = 8.2.27-1 No fix listed
debian/php8.2(Debian:12) = 8.2.28-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.29-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.30-1~deb12u1 No fix listed
debian/php8.2(Debian:12) = 8.2.5-2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1.1 No fix listed
Show 34 more
ProductAffected versionsFixed in
debian/php8.2(Debian:12) = 8.2.7-1.2 No fix listed
debian/php8.2(Debian:12) = 8.2.7-1~deb12u1 No fix listed
debian/php8.4(Debian:13) < 8.4.21-1~deb13u1 8.4.21-1~deb13u1
debian/php8.4(Debian:13) = 8.4.11-1 No fix listed
debian/php8.4(Debian:13) = 8.4.16-1 No fix listed
debian/php8.4(Debian:13) = 8.4.16-1~deb13u1 No fix listed
debian/php8.4(Debian:13) = 8.4.20-1 No fix listed
debian/php8.4(Debian:14) < 8.4.21-1 8.4.21-1
debian/php8.4(Debian:14) = 8.4.11-1 No fix listed
debian/php8.4(Debian:14) = 8.4.16-1 No fix listed
debian/php8.4(Debian:14) = 8.4.16-1~deb13u1 No fix listed
debian/php8.4(Debian:14) = 8.4.20-1 No fix listed
debian/php8.4(Debian:14) = 8.4.21-1~deb13u1 No fix listed
PHP < 8.2.31 8.2.31
PHP < 8.3.31 8.3.31
PHP < 8.4.21 8.4.21
PHP < 8.5.6 8.5.6
redhat enterprise linux All versions No fix listed
redhat enterprise linux = 10 No fix listed
redhat enterprise linux = 6 No fix listed
redhat enterprise linux = 7 No fix listed
redhat enterprise linux = 8 No fix listed
redhat enterprise linux = 9 No fix listed
redhat hummingbird = 1 No fix listed
redhat/php(Red Hat:enterprise_linux:10) All versions No fix listed
ubuntu/php8.1(Ubuntu:22.04) < 8.1.2-1ubuntu2.24 8.1.2-1ubuntu2.24
ubuntu/php8.3(Ubuntu:24.04) < 8.3.6-0ubuntu0.24.04.9 8.3.6-0ubuntu0.24.04.9
ubuntu/php8.5(Ubuntu:26.04) < 8.5.4-0ubuntu1.1 8.5.4-0ubuntu1.1
PHP >= 8.2.0, < 8.2.31 8.2.31
PHP >= 8.3.0, < 8.3.31 8.3.31
PHP >= 8.4.0, < 8.4.21 8.4.21
PHP >= 8.5.0, < 8.5.6 8.5.6
PHP(Azure Linux:3.0) All versions No fix listed
PHP(Azure Linux:4.0) < 0:8.4.26-5.azl4 0:8.4.26-5.azl4

References