VDB

CVE-2025-14179

CVE-2025-14179 PUBLISHED CVSS 7.4 HIGH

SQL injection in pdo_firebird via NUL bytes in quoted strings

Reported by php · Published May 10, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
php-8.2Wolfi8.2.31-r0
libphpBitnami8.5.6, 8.4.21, 8.3.31, 8.2.31
php-8.2Chainguard8.2.31-r0
phpBitnami8.5.6, 8.4.21, 8.3.31, 8.2.31
php-minBitnami8.5.6, 8.4.21, 8.3.31, 8.2.31
phpphp8.5.6, 8.4.21, 8.3.31, 8.2.31
pdo_firebirdPHP Group8.5.6, 8.4.21, 8.3.31, 8.2.31

Risk scores

CVSS 4.0
7.4
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/AU:Y/RE:M/U:Amber

Affected products

VendorProductVersions
PHP GroupPHP8.2.*, 8.3.*, 8.4.*
Red HatRed Hat Enterprise Linux 9
Red HatRed Hat Enterprise Linux 8
Red HatRed Hat Enterprise Linux 8
Red HatRed Hat Enterprise Linux 9
Red HatRed Hat Enterprise Linux 9
Red HatRed Hat Enterprise Linux 10
Red HatRed Hat Enterprise Linux 6
Red HatRed Hat Hardened Images
PHP GroupPHP8.2.*, 8.4.*, 8.5.*
Red HatRed Hat Enterprise Linux 7
Red HatRed Hat Enterprise Linux 10

Timeline

  • May 7, 2026 CVE Published
  • May 8, 2026 PoC Published (9 in total, the first dated here)
  • May 11, 2026 Security Advisory (13 in total, the first dated here)
  • May 18, 2026 EPSS Score (30 in total, the first dated here)
  • Aug 10, 2026 Coalition ESS Score
  • Aug 11, 2026 Distribution Patch (10 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-14179
vulnetix vdb fixes CVE-2025-14179

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-14179/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›