CVE-2026-63221 Details
Description
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.
A SQL injection vulnerability has been identified in the CodeIgniter web framework, specifically in versions 4.3.0 prior to 4.7.4. The issue arises in the Query Builder's deleteBatch() method when used with where() conditions. Bound values from the WHERE clause are inserted into the SQL without proper escaping, allowing user-controlled input to be interpreted as raw SQL. This vulnerability does not affect the regular delete() method, which correctly escapes WHERE bindings.
Users can upgrade to CodeIgniter version 4.7.4 or later, where this vulnerability has been patched. If an immediate upgrade is not possible, it's recommended to validate and cast user-controlled values before using them in where() conditions, or to use the regular delete() method with Query Builder binds instead of deleteBatch().
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 31, 2026CISA-ADP
Assessed Jul 31, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/codeigniter4/CodeIgniter4/commit/f5e463b9a3e986389ce285963e51a7f1fab6559f | [email protected] | Source CodeVendor |
| https://github.com/codeigniter4/CodeIgniter4/releases/tag/v4.7.4 | [email protected] | Release NotesVendor |
| https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-c9w5-rwh3-7pm9 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| CodeIgniter | >= 4.3.0, < 4.7.4 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 31, 2026 | CVE Modified | CISA-ADP |
| Jul 31, 2026 | New CVE Received | [email protected] |
Volerion