CVE-2026-142150: CodeIgniter4
AI-assisted summary built from NVD and CISA data. Verify against the linked sources before acting.
Summary
CodeIgniter4 mishandles named bind placeholders in SQL text, including inside escaped string literals. Under the described conditions, this can let remote attackers execute arbitrary SQL.
Impact: SQL injection
Affected technologies
- CodeIgniter4 before 4.7.6
Recommended action
Upgrade CodeIgniter4 to version 4.7.6 or later.
Details
| CVSS | 9.2 (Critical) |
| Vendor / product | CodeIgniter4 |
| Published | 2026-12-02 |
| Weakness | CWE-89 |
| Vector | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Original 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.
References
- NVD record
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-25rf-99hr-7pmr
- https://www.vulncheck.com/advisories/codeigniter4-before-4.7.6-sql-injection-via-named-bind-placeholders-in-query-builder
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-25rf-99hr-7pmr