CVE-2026-63221
codeigniter4/framework: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CVE-2026-63221)
Affected
- packagist/codeigniter4/framework
4.3.0..* - packagist/codeigniter4/framework
v4.3.0..* - packagist/codeigniter4/framework
v4.3.1..* - packagist/codeigniter4/framework
v4.3.2..* - packagist/codeigniter4/framework
v4.3.3..* - packagist/codeigniter4/framework
v4.3.4..* - packagist/codeigniter4/framework
v4.3.5..* - packagist/codeigniter4/framework
v4.3.6..* - packagist/codeigniter4/framework
v4.3.7..* - packagist/codeigniter4/framework
v4.3.8..* - packagist/codeigniter4/framework
v4.4.0..* - packagist/codeigniter4/framework
v4.4.1..* - packagist/codeigniter4/framework
v4.4.2..* - packagist/codeigniter4/framework
v4.4.3..* - packagist/codeigniter4/framework
v4.4.4..* - packagist/codeigniter4/framework
v4.4.5..* - packagist/codeigniter4/framework
v4.4.6..* - packagist/codeigniter4/framework
v4.4.7..* - packagist/codeigniter4/framework
v4.4.8..* - packagist/codeigniter4/framework
v4.5.0..* - packagist/codeigniter4/framework
v4.5.1..* - packagist/codeigniter4/framework
v4.5.2..* - packagist/codeigniter4/framework
v4.5.3..* - packagist/codeigniter4/framework
v4.5.4..* - packagist/codeigniter4/framework
v4.5.5..* - packagist/codeigniter4/framework
v4.5.6..* - packagist/codeigniter4/framework
v4.5.7..* - packagist/codeigniter4/framework
v4.5.8..* - packagist/codeigniter4/framework
v4.6.0..* - packagist/codeigniter4/framework
v4.6.1..* - packagist/codeigniter4/framework
v4.6.2..* - packagist/codeigniter4/framework
v4.6.3..* - packagist/codeigniter4/framework
v4.6.4..* - packagist/codeigniter4/framework
v4.6.5..* - packagist/codeigniter4/framework
v4.7.0..* - packagist/codeigniter4/framework
v4.7.1..* - packagist/codeigniter4/framework
v4.7.2..* - packagist/codeigniter4/framework
v4.7.3..*
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.
Affected products
The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.
4.3.0v4.3.0v4.3.1v4.3.2v4.3.3v4.3.4v4.3.5v4.3.6v4.3.7v4.3.8v4.4.0v4.4.1v4.4.2v4.4.3v4.4.4v4.4.5v4.4.6v4.4.7v4.4.8v4.5.0v4.5.1v4.5.2v4.5.3v4.5.4v4.5.5v4.5.6v4.5.7v4.5.8v4.6.0v4.6.1v4.6.2v4.6.3v4.6.4v4.6.5v4.7.0v4.7.1v4.7.2v4.7.3Metrics
Show all metrics
Weakness classes (CWE)
CWE-89Base
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
cwe.mitre.org →
References & sources
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-c9w5-rwh3-7pm9x_refsource_CONFIRM
- https://github.com/codeigniter4/CodeIgniter4/commit/f5e463b9a3e986389ce285963e51a7f1fab6559fx_refsource_MISC
- https://github.com/codeigniter4/CodeIgniter4/releases/tag/v4.7.4x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-63221advisory
- https://github.com/codeigniter4/CodeIgniter4package
Reanalysis & status changes
Chronological NVD audit events for this CVE — reanalyses, CVSS updates, CPE diffs.
- New CVE Received2026-07-31 06:16 UTC· security-advisories@github.com
- Affected: CodeIgniter4
- 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.
- CVSS V3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
- CWE: CWE-89