CodeIgniter4
CodeIgniter: SQL injection is possible via 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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.4critical · scored by CNA · CWE-89
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
codeigniter4 CodeIgniter4
- >= 4.3.0, < 4.7.4
Fixed in 4.7.4
Mitigation
Upgrade CodeIgniter4 to 4.7.4 or later.
References
- Vendor advisory github.com/codeigniter4/CodeIgniter4/security/…
- Patch github.com/codeigniter4/CodeIgniter4/commit/f5…
- Release notes github.com/codeigniter4/CodeIgniter4/releases/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.