SQL injection in CodeIgniter4 - CVE-2026-63221

 

SQL injection in CodeIgniter4 - CVE-2026-63221

Published: July 7, 2026


Vulnerability identifier: #VU137012
CSH Severity: High
CVSS v4: 8.8 [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]
CVE-ID: CVE-2026-63221
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

CodeIgniter4

How to mitigate CVE-2026-63221

Install security update from vendor's website.

CodeIgniter4 - update to 4.7.4

External References

Related Security Bulletins