SQL injection in CodeIgniter4 - #VU137012

 

SQL injection in CodeIgniter4 - #VU137012

Published: July 7, 2026


Vulnerability identifier: #VU137012
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: N/A
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: CodeIgniter
Affected software:
CodeIgniter4

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary SQL commands.

The vulnerability exists due to SQL injection in the Query Builder deleteBatch() method when using where() conditions. A remote attacker can supply crafted input to where() before deleteBatch() is called to execute arbitrary SQL commands.

This affects only the deleteBatch() code path; regular delete() operations escape where() binds correctly.


Remediation

Install security update from vendor's website.

Sources