CVE-2026-142154: CodeIgniter4 before 4.7.5 Code Injection via View Parser Conditionals

Published Dec 2, 2026
·
Updated

CodeIgniter4 before 4.7.5 contains a code injection vulnerability that allows less-trusted template editors to execute PHP code through unrestricted View Parser conditional tags. Attackers who can edit template source, such as online email templates, can inject crafted conditionals to execute arbitrary PHP code on the server.

Affected Software

1 affected component
CodeIgniter CodeIgniter4<4.7.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 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

Who is exposed to this issue?

CodeIgniter4 deployments using a version before 4.7.5 are exposed when less-trusted users can edit View Parser template source. Examples include installations that allow users to edit online email templates.

2

What access does an attacker need to exploit it?

An attacker needs permission to modify template source processed by the View Parser. They can use crafted conditional tags to execute arbitrary PHP code on the server; no user interaction is required.

3

Is a default installation affected?

The available information identifies exposure through unrestricted View Parser conditional tags and attacker-controlled template editing. It does not state whether default CodeIgniter4 configurations grant untrusted users the ability to edit template source.

4

What should be prioritized for remediation?

Upgrade CodeIgniter4 to version 4.7.5 or later. Until upgrading, restrict template-source editing to fully trusted administrators and review online or user-editable templates for crafted conditional tags.

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