Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

CodeIgniter4 Query Builder SQL Injection (CVE-2026-142150)

CVE-2026-142150 is an SQL injection flaw in CodeIgniter4 before 4.7.6.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-142150
Vendor
CodeIgniter4
Affected Product
CodeIgniter4 (codeigniter4/framework)
Exploitation
Not confirmed
Published
2026-12-02

CVE-2026-142150 is an SQL injection flaw in CodeIgniter4 before 4.7.6. The CodeIgniter4 advisory says named bind substitution can revisit values already escaped into SQL string literals. An application is exposed when an attacker controls both a value rendered into such a literal and a value later substituted as a named bind in the same query.The vendor rates the issue High and published a proof of concept in its advisory. The VulnCheck CNA record assigns CVSS 4.0 9.2, while its CVSS 3.1 score is 8.1. For product context, see the vulnerability intelligence platform.

What it allows

How Does CVE-2026-142150 Cross the SQL Boundary?

The advisory locates the flaw in Query::matchNamedBinds(). Named placeholders are replaced across the complete SQL text, including escaped values already embedded as literals. If the attacker also controls the matching bind value, replacement can change what the database reads as data into SQL syntax.

The advisory identifies subquery and union composition, custom escaped where() or having() strings, some deleteBatch() conditions, and mixed manual fragments in $db->query() as affected patterns. Its second deleteBatch() case involves the order of WHERE bind and batch-row substitution. This is a query-composition issue; a plain where(), like(), whereIn(), insert(), or update() call alone does not meet the advisory's described conditions.

The vendor's proof of concept demonstrates an unexpected query result on CodeIgniter4 4.7.5 with MySQL 8. It establishes a reproducible flaw under the demonstrated application pattern, not exploitation of a production site. The CISA KEV catalog version dated 30 November 2026 does not list this CVE.

For a plain-language explanation of the weakness class, see SQL injection. Our defensive reading is to prioritize applications that combine attacker-controlled input with the affected query-building patterns.

Who is affected

Which CodeIgniter4 Builds Need the CVE-2026-142150 Fix?

The CodeIgniter4 advisory lists codeigniter4/framework versions through 4.7.5 as affected and 4.7.6 as patched. The CNA record describes versions before 4.7.6 as affected. Exposure requires the application's query to combine an attacker-controlled escaped literal with an attacker-controlled named bind, or to match the advisory's separate deleteBatch() condition.

Inventory the deployed Composer package and inspect application code for the affected query patterns. Trace whether untrusted request data reaches both sides of the same composed query. Review query-building code around subqueries, unions, manual escaping and deleteBatch(), then prioritize reachable paths handling sensitive data.

Update to 4.7.6 or later and verify the version actually loaded by each deployed application process. Regression-test the affected query paths with harmless inputs and compare the expected result sets. Keep the patch evidence in the patch management process; application logs alone cannot establish exploitation of this specific flaw.

Timeline

  1. 2026-11-01

    The CodeIgniter4 GitHub advisory was published with a proof of concept and a 4.7.6 fix.

  2. 2026-12-02

    The VulnCheck CNA published the CVE-2026-142150 record.

What to do

  1. Inventory CodeIgniter4 installations

    Find applications using codeigniter4/framework and record the deployed package version. Identify reachable application routes that build database queries from untrusted input.

  2. Review the affected query patterns

    Inspect subquery, union, custom escaped clause, deleteBatch() and mixed $db->query() usage. Confirm whether an attacker can control the required values in one query.

  3. Apply and verify the fix

    Upgrade affected deployments to CodeIgniter4 4.7.6 or later. After deployment, verify the running package version in every instance and regression-test the affected query paths.

  4. Investigate suspicious outcomes

    Review abnormal result sets and related application or database logs for exposed query paths. Treat these observations as triage leads, not proof of CVE-specific exploitation.

What Brandefense can do

Frequently Asked Questions

What conditions expose an application to CVE-2026-142150?

The vendor describes an affected query combining an attacker-controlled escaped literal with an attacker-controlled named bind. It also documents a separate deleteBatch() substitution-order case.

Which CodeIgniter4 release fixes CVE-2026-142150?

The CodeIgniter4 advisory lists 4.7.6 as the patched release. Verify that every deployed application process loads 4.7.6 or a later release.

Does the vendor provide a public proof of concept?

Yes. Its 1 November 2026 GitHub advisory includes a proof of concept tested on 4.7.5 with MySQL 8. That demonstration does not establish real-world exploitation.

Sources

  1. SQL Injection via Named Bind PlaceholdersCodeIgniter4
  2. CVE-2026-142150 RecordVulnCheck CNA via CVE Program
  3. CISA Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →