← News

Codeigniter4: sql injection

HighAI-generated2026-12-03

CVE
CVE-2026-142150
Severity
High (CVSS 8.1)
Attack conditions
Remotely, over the network · No account needed · No user action needed

Summary

CodeIgniter4 versions prior to 4.7.6 are vulnerable to an SQL injection flaw that can let attackers run arbitrary database commands.

Details

According to the NVD record, CodeIgniter4 before version 4.7.6 has an SQL injection issue in the Query::matchNamedBinds() function. The flaw replaces named placeholders throughout the entire SQL statement, even inside quoted strings that are already escaped.

An attacker who can insert a specially crafted placeholder into a subquery, UNION, escaped where/having clause, deleteBatch condition, or a $db->query() fragment and control its value can break out of the string literal and execute any SQL they choose.

What to do

Upgrade to version 4.7.6 or later.

Sources

Timeline

  • 2 December 2026 NVD record published
  • 3 December 2026 This article was written