Skip to main content

PHP CVE-2026-17543

| EUVDEUVD-2026-51090 HIGH
SQL Injection (CWE-89)
2026-07-30 php
8.1
CVSS 4.0 · Vendor: php
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify PHP app with escaped-string query
  2. Delivery
    Send parameter with crafted backslash-quote payload
  3. Exploit
    Backslash mis-escaping breaks out of string literal
  4. Execution
    Injected SQL executes on backend database
  5. Impact
    Exfiltrate or modify database data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a target application that (1) passes attacker-controlled input into PHP's built-in SQL string-escaping function and (2) concatenates the escaped value into a query rather than using prepared statements with bound parameters. The attacker must be able to reach an input parameter (HTTP request field, query string, etc.) that flows into such a query. Limiting factors: applications using parameterized/prepared statements are not exploitable via this path; the outcome depends on database privileges of the PHP connection; and exploitation is unauthenticated at the PHP layer (PR:N) but any application-level authentication in front of the vulnerable input still applies. No public exploit exists yet (E:U), though the vendor describes injection as trivial and CVSS marks it automatable (AU:Y).

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) indicates a network-reachable, low-complexity, unauthenticated-at-the-PHP-layer flaw with high confidentiality, integrity, and availability impact to the database, scoring 8.1. Threat metrics temper this: E:U marks exploit maturity as unproven (no public POC or active exploitation known), it is not in CISA KEV, and EPSS is not provided. Notably AU:Y (automatable) is a real amplifier - mass, scripted exploitation is feasible once a working payload exists. The key caveat: real-world exploitability depends entirely on whether a downstream application feeds attacker-controlled data through PHP's escaping into a SQL query, so the PR:N rating reflects the library interface, not every deployment; some apps using parameterized queries/prepared statements are unaffected. Overall this is a genuine high priority for anyone running the affected PHP versions behind data-driven applications, but the absence of a public exploit means the window favors proactive patching over emergency response.

Exploit ScenarioDerived

An attacker submits a crafted form field or URL parameter ending in a backslash followed by a quote to a PHP web application that escapes the value with PHP's built-in function before concatenating it into a SQL query. The improper backslash escaping lets the quote close the string literal, and appended SQL is executed against the backend database, permitting data theft, modification, or destruction. No public exploit code is currently known, but the flaw is described as trivial and marked automatable.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

SQL injection in the PHP interpreter's string-escaping routine affects 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, where backslashes in attacker-controlled parameters are improperly escaped, allowing malicious input to break out of quoted SQL string literals. Any web application relying on PHP's built-in escaping to sanitize user data before database queries can be subverted, enabling trivial injection. This is a CWE-89 flaw reported by the PHP project (advisory GHSA-7qpv-r5mr-78m4); no public exploit identified at time of analysis, and CVSS 4.0 rates it 8.1 with exploitation marked automatable.

RemediationAI

Vendor-released patch: upgrade PHP to 8.2.33, 8.3.33, 8.4.24, or 8.5.9 (or later) matching your branch, as published in advisory https://github.com/php/php-src/security/advisories/GHSA-7qpv-r5mr-78m4. Where an immediate runtime upgrade is not possible, mitigate at the application layer by switching database access to parameterized/prepared statements (PDO or mysqli bound parameters) instead of relying on manual string escaping, which sidesteps the flawed backslash handling; note this requires code changes and testing. As a stopgap, place strict input validation or a WAF rule to reject parameters containing backslash-plus-quote sequences in front of affected apps, accepting that WAF filtering is bypass-prone and validation may break legitimate input containing backslashes. Prioritize the interpreter upgrade as the definitive fix.

Affected VersionsENISA

PHP 8.4.* <8.4.24
PHP 8.2.* <8.2.33
PHP 8.5.* <8.5.9
PHP 8.3.* <8.3.33

Affected Packages

euvd php_8_2 fix: 8.2.33
euvd php_8_3 fix: 8.3.33
euvd php_8_4 fix: 8.4.24
euvd php_8_5 fix: 8.5.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability lies in PHP's core character-escaping logic used to neutralize special characters in database queries (the class of function that escapes quotes and control characters, e.g. mysqli/PDO/driver-level escaping). Because backslashes are not correctly escaped, an attacker can supply a trailing or crafted backslash sequence that consumes or neutralizes the escaping applied to a following quote, letting the quote terminate the string literal and inject arbitrary SQL. This is a textbook CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) root cause, but occurring inside the language runtime itself rather than application code, so applications that correctly call the escaping API are still exposed. The affected CPE is cpe:2.3:a:php_group:php across the 8.2 through 8.5 branches.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (php) PRIMARY 8.1 HIGH
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
vuln.today AI 9.8 CRITICAL

Network-reachable via unauthenticated app input at the PHP layer with low complexity, and SQL injection typically yields full read, write, and destructive access to the database (C/I/A:H).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 7.4 HIGH

Primary rating from Vendor (php).

CVSS VectorVendor: php

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 30, 2026 - 12:03 EUVD
CVE Published
Jul 30, 2026 - 11:22 cve.org
HIGH 8.1

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

PHP interpreter versions 8.2-8.5 contain a SQL injection flaw in string-escaping routines that allows attackers to bypass built-in sanitization and compromise database-backed web applications. Any organization running affected PHP versions faces immediate risk of data theft, unauthorized modification, and system compromise.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: enforce parameterized queries and prepared statements, implement strict input validation and allowlisting, deploy Web Application Firewall rules targeting SQL injection signatures, restrict database service accounts to minimal required privileges, enable database query logging and real-time monitoring for anomalous SQL patterns, apply network segmentation to limit direct database access, and conduct security code review of all SQL construction code paths.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Ubiquitous
PHP powers a huge fraction of web servers and applications worldwide
Social Media
5
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy