CVE-2026-142153: CodeIgniter4 before 4.7.5 Code Injection via View Data Key Collision

Published Dec 2, 2026
·
Updated

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

1 affected component
CodeIgniter CodeIgniter 4<4.7.5

Event History

Dec 2, 2026
CVE Published
via MITRE·02:37 PM
Data Sourced
via MITRE·02:37 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

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