Skip to content
Back to search

CVE-2025-14179

CRITICAL
9.8NVD

Summary

generated automatically from NVD data

The PDO Firebird driver in PHP 8.2, 8.3, 8.4 and 8.5 branches mishandles NUL bytes while building SQL queries token by token. A string token containing a NUL byte is copied with strncat(), which stops at the NUL, so the closing quote is lost and later SQL tokens are read as part of the string. This enables SQL injection when attacker-controlled values pass through PDO::quote() into statements, and the flaw is rated CRITICAL with a CVSS v3.1 score of 9.8.

NVD 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.

Share:

EPSS · FIRST.org

0.53%probability of exploitation in the next 30 days

Higher than 38% of scored CVEs

EPSS (Exploit Prediction Scoring System) estimates, from observed exploitation activity, how likely a CVE is to be exploited in the next 30 days. It complements CVSS, which measures severity, not likelihood. Score of 2026-11-25, recomputed daily by FIRST.org.

In-depth analysis on cveo.tech

This CVE is covered in an article: context, affected versions and published fixes.

CVSS v3.1 Score

9.8
/ 10.0
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Information

Published
10 mai 2026
Updated
25 juil. 2026
Status
Modified
Source
security@php.net

Affected products

Versions ≥ 8.2.0, < 8.2.31 · ≥ 8.3.0, < 8.3.31 · ≥ 8.4.0, < 8.4.21 · ≥ 8.5.0, < 8.5.6

Bounds published by NVD: "< 8.4.27" means 8.4.27 is no longer vulnerable. The fixed release to install is in the vendor advisory.

Weaknesses (CWE)

CWE-89CWE-89

Similar CVEs

Other vulnerabilities of type CWE-89

…

Running PHP servers? Know which CVEs hit your version.

Add the product and its version: cveo.tech lists the CVEs that affect it right away, then alerts you by email when a new one affects it — including before NVD has finished its analysis. Free, an account is all it takes.