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

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
CodeIgniter CodeIgniter4<4.7.6

Event History

Dec 2, 2026
CVE Published
via MITRE·02:37 PM
Data Sourced
via MITRE·02:37 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness
Event
via NVD·03:17 PM
Dec 5, 2026
Exploit Published
via CISA·02:47 AM

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Applications using CodeIgniter4 before 4.7.6 are exposed when attacker-controlled input can introduce a named placeholder such as :name: into SQL text and the attacker can also control the value bound to that placeholder. The affected paths include subqueries, UNIONs, escaped where() or having() strings, deleteBatch() conditions, and fragments passed to $db->query().

2

Does exploitation require authentication or user interaction?

No authentication or user interaction is required according to the supplied vector. Exploitation does require a suitable application-level input path that lets a remote attacker influence both a named placeholder in the SQL fragment and its corresponding bind value.

3

What should teams do if they cannot immediately upgrade?

The provided information does not list a workaround. Prioritize removing or strictly preventing attacker-controlled named placeholders and bind values from reaching the affected SQL-construction paths, particularly custom SQL fragments, subqueries, UNIONs, and escaped condition strings.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203