Skip to main content
Mallory
← Back to News
widely-deployed-product-advisoryinternet-facing-service-vulnerabilityendpoint-software-vulnerabilityproof-of-concept-release

PHP Patches SQL Injection in ext-pgsql and Memory Corruption in bccomp()

Patch & Detection Intelligence · 6 sources · Updated 4mo ago · First seen Jul 30, 2026

PHP Patches SQL Injection in ext-pgsql and Memory Corruption in bccomp()

PHP disclosed fixes for two high-severity vulnerabilities affecting multiple supported branches. CVE-2026-17543 is an SQL injection flaw in ext-pgsql caused by improper escaping of backslashes in attacker-controlled parameters, enabling trivial injection through E'...' breakout. CVE-2026-17544 is an out-of-bounds write in ext-bcmath where crafted input to bccomp() can trigger stack and heap corruption. Both issues are rated as network-exploitable with low attack complexity and high impact on confidentiality, integrity, and availability, and CISA SSVC metadata indicates no exploitation has been observed but both flaws are considered automatable with total technical impact.

The vulnerabilities affect PHP versions before 8.2.33, 8.3.33, 8.4.24, and 8.5.9, with the bccomp() flaw applying to 8.4.x and 8.5.x before those patched releases. The Canadian Centre for Cyber Security published advisory AV26-764, echoing the PHP Group notice and urging users and administrators to review the vendor guidance and update affected deployments as fixes become available.

Patch this, or something else?See real exploitation activity before you spend the cycle.
Triage this advisory
Event timeline

How this story unfolded

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

4 events · Jul 30, 2026
  1. Jul 30, 20264mo ago

    PHP releases 8.5.9, 8.4.24, 8.3.33, and 8.2.33 security updates

    On July 30, 2026, PHP announced four security releases: versions 8.5.9, 8.4.24, 8.3.33, and 8.2.33. The releases fixed multiple issues including CVE-2026-17543, CVE-2026-17544, CVE-2026-7260, and CVE-2026-9672.

    oss-sec: PHP 30 July 2026 security releases
  2. Jul 30, 20264mo ago

    Canadian Centre for Cyber Security issues PHP multi-vulnerability advisory

    On July 30, 2026, the Canadian Centre for Cyber Security published advisory AV26-764 warning that multiple PHP branches prior to 8.2.33, 8.3.33, 8.4.24, and 8.5.9 are affected by the ext-pgsql SQL injection flaw and the bccomp() out-of-bounds write. The advisory urged users and administrators to review the referenced links and apply updates as they become available.

    PHP Group security advisory (AV26-764) - Canadian Centre for Cyber Security
  3. Jul 30, 20264mo ago

    PHP bccomp() out-of-bounds write disclosed as CVE-2026-17544

    A vulnerability in PHP's ext-bcmath package was disclosed in which attacker-controlled input to bccomp() can trigger an out-of-bounds write leading to stack and heap corruption. The issue affects PHP 8.4.x before 8.4.24 and 8.5.x before 8.5.9.

    CVE-2026-17544 - Out-of-bounds write in bccomp() via crafted operand and scale
  4. Jul 30, 20264mo ago

    PHP ext-pgsql SQL injection vulnerability disclosed as CVE-2026-17543

    A SQL injection flaw in PHP's ext-pgsql package was disclosed, caused by improper escaping of backslashes in attacker-provided parameters that can enable trivial SQL injection. Affected versions include PHP 8.2.x before 8.2.33, 8.3.x before 8.3.33, 8.4.x before 8.4.24, and 8.5.x before 8.5.9.

    CVE-2026-17543 - SQL injection in ext-pgsql via E'...' backslash breakout
Linked entities

Related entities

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

Open in app →

Affected products

1 linked
Php

Organizations

2 linked
The Php GroupPHP Group
Do you run this?See real exploitation activity behind this advisory so you can triage it against everything else in the queue.
Prioritize This Patch
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.