CVE-2026-142153: CodeIgniter4 before 4.7.5 Code Injection via View Data Key Collision
CodeIgniter4 before 4.7.5 contains a code injection vulnerability because view data is extracted into the same scope as internal variables, letting colliding keys replace the trusted template source or an included view path. Attackers who control view data keys can supply template, view, or foundView keys to Parser::render(), Parser::renderString(), View::renderString(), or view cells to execute PHP code or include unintended local files.
Affected Software
Event History
Frequently Asked Questions
Which applications are realistically exposed to this issue?
Applications using CodeIgniter4 versions before 4.7.5 are exposed if attacker-controlled input can determine keys in view data passed to Parser::render(), Parser::renderString(), View::renderString(), or view cells. The relevant dangerous keys are template, view, and foundView.
What does an attacker need to exploit the vulnerability?
An attacker needs control over view data keys, not merely view-data values. They must be able to supply a colliding template, view, or foundView key to one of the affected rendering paths.
What is the impact if exploitation succeeds?
A successful collision can replace a trusted template source or included-view path. This can result in PHP code execution or inclusion of unintended local files.
How can teams determine whether they may be affected?
Check whether the application uses a CodeIgniter4 release before 4.7.5, then review calls to the listed rendering methods and view cells. Investigate whether untrusted input can populate view-data keys, especially template, view, or foundView.