Skip to content
Noroxi
CVE-2026-17543· NVD / CVE Program· CNA php

SQL injection in ext-pgsql via E'...' backslash breakout

Improper escaping of backslashes in attacker-provided parameters would allow for trivial SQL injection in PHP versions from 8.2.* before 8.2.33, from 8.3.* before 8.3.33, from 8.4.* before 8.4.24, and from 8.5.* before 8.5.9.

HighCVSS 8.1 · v4.0—Proof of concept Fix available
Published
Jul 30, 2026
Updated
Aug 5, 2026
EPSS
0.3% · 24th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

32

Monitor

Low priority for now.

CVSS
32 / 40 · 8.1 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.3%

CISA SSVC decision

Exploitation
none
Automatable
yes
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · php
8.1
NVD has not scored this yet; the score shown is the CNA’s.

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/AU:Y/R:U

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
phpphp

Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)

Add to my stack

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • php php8.2.0 and later · before 8.2.33
  • php php8.3.0 and later · before 8.3.33
  • php php8.4.0 and later · before 8.4.24
  • php php8.5.0 and later · before 8.5.9

Versions reported by the vendor

Affected version ranges reported by the assigning authority (php). Independent of NVD's CPE analysis and usually ahead of it.

  • PHP Group PHP

    • 8.2.* and later · before 8.2.33affected · semver
    • 8.3.* and later · before 8.3.33affected · semver
    • 8.4.* and later · before 8.4.24affected · semver
    • 8.5.* and later · before 8.5.9affected · semver

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:10phpbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-bcmathbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-clibefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-commonbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-dbabefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-dbgbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-develbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-embeddedbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-enchantbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-ffibefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-fpmbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-gdbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-gmpbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-intlbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-ldapbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-mbstringbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-mysqlndbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-odbcbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-opcachebefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-pdobefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-pgsqlbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-processbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-snmpbefore 8.3.33-1.el10_28.3.33-1.el10_2
AlmaLinux:10php-soapbefore 8.3.33-1.el10_28.3.33-1.el10_2

+96

Same product

php: all records

Other highest-scoring records for the same primary product.

  • CVE-2024-4577Argument Injection in PHP-CGIKEV
    99Now
  • CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV
    99Now
  • CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle queKEV
    99Now
  • CVE-2018-7584In PHP through 5.6.33, 7.0.x before 7.0.28, 7.1.x through 7.1.14, and 7.2.x through 7.2.2, there is a stack-based buffer under-read while pa
    65This week
  • CVE-2018-19518University of Washington IMAP Toolkit 2007f on UNIX, as used in imap_open() in PHP and other products, launches an rsh command (by means of
    59Plan
  • CVE-2016-3078Multiple integer overflows in php_zip.c in the zip extension in PHP before 7.0.6 allow remote attackers to cause a denial of service (heap-b
    56Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
PHP Group PHP8.2.33Vendor (CNA)
PHP Group PHP8.3.33Vendor (CNA)
PHP Group PHP8.4.24Vendor (CNA)
PHP Group PHP8.5.9Vendor (CNA)
azl3 php 8.3.31-1 on Azure Linux 3.08.3.33-1 · CBL-Mariner ReleasesMicrosoft (MSRC)
almalinux:php8.48.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:php8.4-bcmath8.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:php8.4-cli8.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:php8.4-common8.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:php8.4-dba8.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:php8.4-dbg8.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:php8.4-devel8.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:php8.4-embedded8.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:php8.4-enchant8.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:php8.4-ffi8.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:php8.4-fpm8.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:php8.4-gd8.4.24-1.el10_2 · AlmaLinux:10Package registry (OSV)
debian:php8.28.2.33-1~deb12u1 · Debian:12Package registry (OSV)
debian:php8.48.4.24-1~deb13u1 · Debian:13Package registry (OSV)
opensuse:apache2-mod_php88.4.24-160000.1.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:php88.5.9-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:php8-embed8.4.24-160000.1.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:php8-fastcgi8.4.24-160000.1.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:php8-fpm8.4.24-160000.1.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:php8-test8.4.24-160000.1.1 · openSUSE:Leap 16.0Package registry (OSV)
red hat:php0:8.5.9-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:php-bcmath0:8.5.9-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:php-cli0:8.5.9-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:php-common0:8.5.9-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:php-dba0:8.5.9-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)

+29

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Proof-of-concept repository on GitHub ×2

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Proof-of-concept repository on GitHubstars:02026-08-04
Proof-of-concept repository on GitHubstars:12026-08-06

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+5 d
  3. TodaySep 30, 2026+62 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2025-1735382 days apartpgsql extension does not check for errors during escaping
    30Monitor
  • CVE-2025-1417981 days apartSQL injection in pdo_firebird via NUL bytes in quoted strings
    29Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
Integrity
Availability
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
X

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:U/V:X/RE:X/U:X

nvd-secondary

Root cause

The query text is built by concatenating user input. The database cannot tell where the data ends and the command begins.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const owner = req.query.owner;const rows = await db.query(  "SELECT * FROM files WHERE owner = '" + owner + "'");

Fixed

ts
const owner = req.query.owner;const rows = await db.query(  "SELECT * FROM files WHERE owner = $1",  [owner]);

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

Vendor advisories and official records. Exploit/PoC links are deliberately left out.

All records