Description
CodeIgniter4 before 4.7.6 contains an SQL injection vulnerability in Query::matchNamedBinds(), which substitutes named :name: bind placeholders across the entire SQL text, including values already escaped into string literals. Remote attackers who can inject a :name: placeholder into a subquery, union, escaped where()/having() string, deleteBatch() condition, or $db->query() fragment while controlling that bind's value can break out of the literal and execute arbitrary SQL.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| codeigniter4 | CodeIgniter4 | < 4.7.6 | 4.7.6 |
References
- GitHub Security Advisory (GHSA-25rf-99hr-7pmr) vendor-advisory
- VulnCheck Advisory: CodeIgniter4 before 4.7.6 SQL Injection via Named Bind Placeholders in Query Builder third-party-advisory