Urgent
CodeIgniter4 named bind handling allows arbitrary SQL execution
CVE-2026-142150
Websites built with CodeIgniter can have their database read or changed remotely!
- CVE
- CVE-2026-142150 (opens in a new tab)
- Score
- CVSS 9.2
- Public date
- 2026-11-01
- First seen
9.2
Products
Mitigation
Update to CodeIgniter 4.7.6 or later. Until then, remove one of the two patterns from each affected query. No other workaround is confirmed.
Summary
In CodeIgniter4 4.7.5 and older, a flaw in how named bind placeholders (:name:) are handled lets a remote attacker run arbitrary SQL. Web apps that build queries mixing subqueries with escaped strings are affected.
Exploit code is public
Affected when
- Query uses a subquery, union, escaped where()/having() string, deleteBatch() with where(), or $db->query() mixing named binds with escaped fragments
- Attacker can control a named bind's value and place a :name: placeholder
2 other Incidents of this product in the last 30 days
Incidents by product: CodeIgniter4
Other recent Incidents of CodeIgniter4
Read the advisory · github.com (opens in a new tab)
- Advisory: github.com (opens in a new tab)
- Write-up: vulncheck.com (opens in a new tab)
- CVE record: cve.org (opens in a new tab)