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


