Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisoryinternet-facing-service-vulnerability

PHP PDO Flaws Enable Firebird SQL Injection and PostgreSQL Process Crashes

Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jul 6, 2026

PHP PDO Flaws Enable Firebird SQL Injection and PostgreSQL Process Crashes

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Jul 6, 2026 – Jul 7, 2026
  1. Jul 7, 20264mo ago

    PHP releases fixes for the PDO Firebird and PostgreSQL flaws

    PHP released fixes for the two PDO driver vulnerabilities affecting Firebird and PostgreSQL. The patched releases address the SQL injection issue in pdo_firebird and the NULL dereference crash issue in pdo_pgsql.

    Critical PHP PDO Driver Bugs Expose Firebird SQL Injection and PostgreSQL DoS Risks
  2. Jul 7, 20264mo ago

    PT SWARM researchers identify two PHP PDO driver vulnerabilities

    PT SWARM researchers Aleksey Solovev and Nikita Sveshnikov identified a SQL injection flaw in pdo_firebird and a denial-of-service flaw in pdo_pgsql during an audit of PDO and its dependent client libraries.

    Critical PHP PDO Driver Bugs Expose Firebird SQL Injection and PostgreSQL DoS Risks
  3. Jul 7, 20264mo ago

    Cyber Security News reports newly disclosed PHP PDO vulnerabilities

    On 2026-07-07, Cyber Security News reported the newly disclosed vulnerabilities affecting PHP's PDO Firebird and PostgreSQL drivers, highlighting the risks to unpatched deployments and summarizing the released fixes.

    Critical PHP PDO Driver Bugs Expose Firebird SQL Injection and PostgreSQL DoS Risks
  4. Jul 6, 20265mo ago

    PT SWARM publishes technical analysis of the two PDO bugs

    On 2026-07-06, Positive Technologies published PT SWARM's technical analysis detailing the pdo_firebird NUL-byte SQL injection issue and the pdo_pgsql NULL pointer dereference issue, along with exploitation mechanics and mitigation guidance.

    Hack the Elephant One Bite at a Time: NUL byte SQL Injection in pdo_firebird and NULL Pointer Dereference in PDO via pdo_pgsql - PT SWARM
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.