Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach endpoint invoking deleteBatch()
-
DeliveryInject SQL via where() value
-
ExploitBreak out of DELETE literal
-
ExecutionManipulate/expand affected rows
-
ImpactData loss or unauthorized deletion
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 the target application to invoke Query Builder's deleteBatch() (the batch-delete path) with an attacker-influenced value passed through a where(), orWhere(), or whereIn() condition on the affected CodeIgniter4 versions 4.3.0-4.7.3. The vulnerability does not trigger through the ordinary delete() method, which escapes binds correctly, so applications that never use deleteBatch() or that only feed it hard-coded/whitelisted condition values are not exploitable. There is no framework-level authentication requirement (CVSS PR:N), but reachability depends entirely on the application exposing a request path that routes user input into a deleteBatch() where-condition; the OCI8, Postgre, and default builders are all affected. |
| Impact | The vendor CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H, base 9.4) rates this network-exploitable with low complexity and no privileges, which is plausible for a reflected SQLi reachable through an exposed endpoint. However, a critical real-world limiter is not captured by the raw score: exploitation requires the target application to actually call deleteBatch() and pass an attacker-controlled value into a where()/whereIn() condition - a specific, non-universal code pattern. No EPSS score, KEV listing, or POC was provided, so there is no evidence of active exploitation; this is a real, high-severity code defect but its exploitability is gated by application usage of the vulnerable method rather than being universally reachable. Confidentiality impact is realistically limited because deleteBatch() runs a DELETE (blind, non-returning) context, making integrity/availability (row deletion/manipulation) the dominant impact - consistent with the vendor's I:H/A:H, C:L rating. |
| Exploit ScenarioDerived | An application exposes a feature that batch-deletes records using Query Builder deleteBatch() with a where() filter derived from a request parameter (for example, deleting a user's job records by name). An unauthenticated or low-privileged attacker submits a value such as anything' OR '1'='1, which is substituted unescaped into the DELETE statement, altering the WHERE clause to match and destroy unintended rows or otherwise inject SQL. No public POC was provided, though the vendor's regression tests demonstrate the exact malicious payload. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
SQL injection in CodeIgniter4's Query Builder deleteBatch() method (versions 4.3.0 through 4.7.3) allows user-controlled where() condition values to be interpreted as executable SQL because bound values are substituted into the generated DELETE statement while their escape flags are ignored. Only the deleteBatch() batch-delete path is affected; ordinary delete() operations escape their binds correctly. No public exploit was identified at time of analysis, and the flaw is resolved in version 4.7.4.
RemediationAI
Vendor-released patch: 4.7.4 - upgrade the codeigniter4/codeigniter4 dependency to 4.7.4 or later (composer update codeigniter4/framework) as the primary and definitive fix, per GHSA-c9w5-rwh3-7pm9 and the release at https://github.com/codeigniter4/CodeIgniter4/releases/tag/v4.7.4. If you cannot upgrade immediately, the effective compensating control is to avoid the vulnerable code path: refactor code so batch deletes that need user input do not pass unescaped user data through where()/whereIn() into deleteBatch() - instead use standard delete() (which escapes binds correctly) or pre-validate/whitelist the condition values, accepting that this requires code changes and may reduce batch-delete efficiency. Additionally, strictly validate and type-cast user input feeding any delete condition, and confirm the fix by porting the vendor's regression tests (testDeleteBatchEscapesWhereBinds) from commit f5e463b.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CodeIgniter4 is a widely used full-stack PHP web framework whose database layer includes a fluent Query Builder. Internally, where() conditions store placeholders (:field:) plus a paired value and an escape flag. The vendor commit (f5e463b) shows that _deleteBatch() in BaseBuilder.php - and its OCI8/Postgre subclasses - replaced those placeholders using str_replace($this->binds[$field][0]) with the raw bound value, never consulting the escape flag at index [1] and never calling $this->db->escape(). This is a textbook CWE-89 (SQL Injection) improper-neutralization defect: data intended as a parameter is concatenated into the SQL text. The fix introduces convertWhereBindsForBatch(), which honors the escape flag, escapes scalars via db->escape(), and wraps array/whereIn() values in a parenthesized escaped list. The single affected CPE is cpe:2.3:a:codeigniter4:codeigniter4.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
Network SQLi reachable without privileges when an exposed endpoint feeds user input to deleteBatch(); DELETE context limits confidentiality (C:L) while row manipulation drives I:H/A:H.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
CodeIgniter is a PHP full-stack web framework. From 4.3.0 through 4.7.3, Query Builder deleteBatch() substitutes bound values from where() conditions into generated SQL while ignoring their escape flags, allowing user-controlled condition values to be interpreted as SQL. This affects only the deleteBatch() code path. Regular delete() operations escape where() binds correctly. This issue is fixed in version 4.7.4.
Articles & Coverage 1
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
CodeIgniter 4 versions 4.3.0-4.7.3 contain a critical SQL injection vulnerability in Query Builder's deleteBatch() method enabling complete database compromise. No public exploit identified at time of analysis, but organizations running these versions face immediate risk of data theft, regulatory violation, and operational disruption. A vendor patch to version 4.7.4 is available.
Apply vendor patch: upgrade to CodeIgniter 4.7.4 or later.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-51397
GHSA-c9w5-rwh3-7pm9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB