CVE-2026-63221
CRITICAL 9.4CVSS 3.1CodeIgniter: SQL injection in Query Builder deleteBatch() when used with where() conditions
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.
- Published
- 31 Jul 2026
- Last modified
- 8 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-89
- Also known as
- GHSA-c9w5-rwh3-7pm9
- Sources
- NVDJSONOSV GHSA-c9w5-rwh3-7pm9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | codeigniter4/framework | >= 4.3.0, < 4.7.4 | 4.7.4 |
References
- https://github.com/codeigniter4/CodeIgniter4/commit/f5e463b9a3e986389ce285963e51a7f1fab6559f · WEB
- https://github.com/codeigniter4/CodeIgniter4/releases/tag/v4.7.4 · WEB
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-c9w5-rwh3-7pm9 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-63221 · ADVISORY
- https://github.com/codeigniter4/CodeIgniter4 · PACKAGE
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 31 Jul 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 7 Aug 2026)