Description
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.
Published: 2026-07-30
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Improper escaping of backslashes in attacker-provided parameters allows trivial SQL injection when PHP uses ext-pgsql with E'...' string literals. The flaw can enable an adversary to inject unauthorized SQL commands, compromising data confidentiality, integrity, and possibly enabling further escalation. The weakness is classified as CWE-89.

Affected Systems

The vulnerability affects PHP versions 8.2.* before 8.2.33, 8.3.* before 8.3.33, 8.4.* before 8.4.24, and 8.5.* before 8.5.9. All PHP releases from the PHP Group that match these version ranges are impacted.

Risk and Exploitability

The CVSS score of 8.1 indicates a high severity. The EPSS score of less than 1% suggests a low current exploitation probability. The vulnerability is not listed in the CISA KEV catalog. It is likely exploitable remotely when application code accepts user input passed to ext-pgsql without proper escaping or validation. While the exact attacker route depends on the application context, any environment that processes user-supplied data through E'...' literals is at risk.

Generated by OpenCVE AI on August 3, 2026 at 10:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PHP to version 8.2.33 or newer, 8.3.33 or newer, 8.4.24 or newer, or 8.5.9 or newer to receive the vendor fix.
  • Disable the ext-pgsql extension if it is not required by your application, or remove it from php.ini to prevent accidental use.
  • Implement input validation or use prepared statements with parameterized queries to avoid backslash injections in E'...' literals.

Generated by OpenCVE AI on August 3, 2026 at 10:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4732-1 php8.2 security update
Debian DLA Debian DLA DLA-4733-1 php7.4 security update
Debian DSA Debian DSA DSA-6406-1 php8.4 security update
History

Wed, 05 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}

threat_severity

Important


Thu, 30 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 30 Jul 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Php Group
Php Group php
Vendors & Products Php Group
Php Group php

Thu, 30 Jul 2026 11:30:00 +0000

Type Values Removed Values Added
Description 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.
Title SQL injection in ext-pgsql via E'...' backslash breakout
Weaknesses CWE-89
References
Metrics cvssV4_0

{'score': 8.1, '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/AU:Y/R:U'}


cve-icon MITRE

Status: PUBLISHED

Assigner: php

Published:

Updated: 2026-07-31T03:55:46.475Z

Reserved: 2026-07-27T10:12:16.392Z

Link: CVE-2026-17543

cve-icon Vulnrichment

Updated: 2026-07-30T12:19:32.775Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-30T12:17:27.120

Modified: 2026-08-05T19:40:35.147

Link: CVE-2026-17543

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-30T11:22:04Z

Links: CVE-2026-17543 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T11:00:03Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')