PHP PDO Flaws Enable Firebird SQL Injection and PostgreSQL Process Crashes
Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jul 6, 2026

Researchers disclosed two vulnerabilities in PHP’s PDO database layer that affect the Firebird and PostgreSQL drivers, showing how low-level driver behavior can bypass application safeguards. The more severe issue, tracked as CVE-2026-25289 in one report and previously referenced as CVE-2025-14179, affects pdo_firebird and can lead to SQL injection when NUL bytes inside quoted input are mishandled during SQL statement reconstruction, potentially dropping a closing quote and allowing attacker-controlled SQL to execute.
A second flaw, CVE-2026-25290 and previously referenced as CVE-2025-14180, affects PDO quoting with pdo_pgsql when emulated prepared statements are enabled. Invalid multibyte input can cause PostgreSQL escaping to return NULL, which PDO then dereferences, crashing PHP processes and creating a denial-of-service condition. The bugs were identified by PT SWARM researchers Aleksey Solovev and Nikita Sveshnikov, and patched PHP releases are available; organizations running older versions are exposed until they upgrade and should avoid unnecessary emulated prepares where possible.


