CVE-2026-142150

8.1High

Published Dec 2, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite

8.1CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
High
Privileges
None
User action
None
Impact
Full C/I/A compromise
Weakness
CWE-89

What an attacker gets

Remote attackers can execute arbitrary SQL commands to read or modify database contents. This requires the attacker to control input that is passed to specific Query Builder methods containing named bind placeholders.

Root cause

The Query::matchNamedBinds() method incorrectly replaces named bind placeholders even when they are already escaped inside string literals.

Affected versions

CodeIgniter4 before 4.7.6

CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to CodeIgniter 4.7.6 or later. If you cannot upgrade, avoid using named bind placeholders in user-controlled input passed to where(), having(), or raw query methods.

remediation — bash
$ composer update codeigniter4/framework

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-142150

More fully triaged vulnerabilities you may want to check next.