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
- 2026-11-01
The CodeIgniter4 GitHub advisory was published with a proof of concept and a 4.7.6 fix.
- 2026-12-02
The VulnCheck CNA published the CVE-2026-142150 record.
What to do
-
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.
-
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.
-
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.
-
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
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-142150 in Brandefense Atlas
The Atlas record of CVE-2026-142150: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
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
- SQL Injection via Named Bind PlaceholdersCodeIgniter4
- CVE-2026-142150 RecordVulnCheck CNA via CVE Program
- CISA Known Exploited Vulnerabilities CatalogCISA