CVE-2026-142154: CodeIgniter4 before 4.7.5 Code Injection via View Parser Conditionals
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.7.5
Event History
Frequently Asked Questions
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.
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.
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.
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.