CVE-2026-142150 PUBLISHED

CodeIgniter4 before 4.7.6 SQL Injection via Named Bind Placeholders in Query Builder

Assigner: VulnCheck
Reserved: 02.12.2026 Published: 02.12.2026 Updated: 02.12.2026

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.

Metrics

CVSS 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
CVSS Score: 9.2

Product Status

Vendor codeigniter4
Product CodeIgniter4
Versions Default: unaffected
  • affected from 0 to 4.7.6 (excl.)
  • Version 4.7.6 is unaffected

Credits

  • mahn-don reporter

References

Problem Types

  • Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') CWE