Skip to content
DayZeroHub
Critical Not yet writtenCVSS 9.2CVE-2026-142150

CVE-2026-142150: CodeIgniter4 before 4.7.6 SQL Injection via Named Bind Placeholders in Query Builder

codeigniter4 CodeIgniter4

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-142150: critical-severity vulnerability (CVSS 9.2) in codeigniter4 CodeIgniter4.

What happened

Original description from the source: 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.

Why it matters

Critical severity, CVSS 9.2.

Affected products and versions

codeigniter4 CodeIgniter4 < 4.7.6; codeigniter4 CodeIgniter4 4.7.6 (fixed in 4.7.6)

ProductVersionsFixed in
codeigniter4 CodeIgniter4< 4.7.6—
codeigniter4 CodeIgniter44.7.64.7.6

Action recommended by the source

Upgrade to a fixed version: 4.7.6.

Fixed in: 4.7.6

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-89

Relevant change history

  1. Published

    Preliminary advisory published.