Quick answers
- Is CVE-2026-63221 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-63221 being exploited in the wild.
- How severe is CVE-2026-63221?
- Critical severity, with a CVSS score of 9.4, published 31 July 2026.
- Which products and versions are affected?
- CodeIgniter Foundation CodeIgniter4 >= 4.3.0, < 4.7.4; codeigniter4/framework (Packagist) >= 4.3.0, < 4.7.4, ECOSYSTEM:introduced=4.3.0,fixed=4.7.4.
- Is there a fix for CVE-2026-63221?
- Yes. codeigniter4/framework (Packagist): upgrade to 4.7.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-63221 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-63221?
- Check whether you run CodeIgniter Foundation CodeIgniter4 or codeigniter4/framework (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- codeigniter4/framework (Packagist): upgrade to 4.7.4 or later
composer require codeigniter4/framework:^4.7.4
Technical details
A SQL injection vulnerability (CWE-89) exists in CodeIgniter 4's Query Builder. The root cause is located in the `deleteBatch()` method; when it is used with `where()` conditions, the framework fails to respect the escape flag for bound values in the WHERE clause. Consequently, these values are substituted directly into the generated SQL without proper escaping or quoting. An attacker can exploit this by providing malicious input to an application that passes user-controlled data directly to a `where()` call prior to executing `deleteBatch()`. This allows for arbitrary SQL execution, potentially leading to data loss or unauthorized access. The issue is patched in version 4.7.4.
Affected products
- CodeIgniter CodeIgniter4 >= 4.3.0, < 4.7.4
Identifiers
- CVE-2026-63221
- GHSA-c9w5-rwh3-7pm9
Timeline
- 2026-07-31: disclosed: NVD publication date
- 2026-08-07: advisory: GitHub Advisory published
- 2026-08-07: patched: Version 4.7.4 released