Skip to main content

CodeIgniter4 CVE-2026-142154

| EUVDEUVD-2026-141464 HIGH
Code Injection (CWE-94)
2026-12-02 VulnCheck GHSA-w96m-gxpw-j6cv
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as template editor
  2. Exploit
    Inject crafted Parser conditional tag
  3. Execution
    Application renders with unrestricted conditionals
  4. Impact
    Arbitrary PHP executes on server

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Two specific conditions must both hold: (1) the application must allow less-trusted users to edit View Parser template source (the advisory's concrete example is online/user-editable email templates), and (2) that source must be rendered with unrestricted Parser conditional tags - i.e., Config\View::$restrictParserConditionals (or the per-render restrictConditionals option) is NOT enabled. Applications that use only developer-controlled templates are explicitly not affected. Limiting factors: the attacker needs an account with template-edit privileges (PR:L, not anonymous), and the vulnerable path only exists where untrusted template editing is a deliberate product feature. Critical defender note per the advisory: upgrading to 4.7.5 alone does not remove the exposure - restrictParserConditionals (or restrictConditionals per render) must be enabled for every affected template.

Impact

Severity signals are consistent but the real-world trigger is narrow. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with VC:H/VI:H/VA:H scores 8.7 (High) and reflects authenticated remote code execution with full confidentiality, integrity and availability loss on the vulnerable system (no scope change: SC/SI/SA = N). PR:L is decisive and correct: exploitation requires an account able to edit View Parser template source, so this is not an unauthenticated internet-facing bug. The vuln.today decision label is 'this_week' (not act_now/emergency), which aligns with a serious-but-conditional issue rather than mass exploitation. There is no CISA KEV listing and no EPSS score was provided in the input, so widespread-exploitation probability cannot be quantified from this data. No public exploit code is referenced (the two references are the GHSA and VulnCheck advisories, not PoC code). Net assessment: a genuine RCE worth patching promptly for any deployment that exposes template editing to less-trusted users, but a low-urgency or non-applicable issue for applications that use only developer-controlled templates - the advisory explicitly states those are not affected. A key nuance defenders must note: upgrading to 4.7.5 alone does NOT close the exposure; the restriction must be explicitly enabled.

Exploit ScenarioDerived

An application (for example, a SaaS product offering user-editable online email templates) lets a lower-privileged user edit View Parser template source. That user embeds a crafted Parser conditional tag containing PHP, and when the application renders the template with unrestricted conditionals, the injected code executes on the server. No public exploit code is identified in the provided sources, but the technique is described directly in the vendor advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

PHP code injection in the CodeIgniter4 View Parser (versions before 4.7.5) lets users who can edit template source - for example an online or user-editable email template - embed crafted conditional tags that are evaluated as PHP and executed on the server, giving that template editor code execution with the web application's privileges. Exploitation requires two conditions to hold at once: untrusted users must be permitted to edit template source, and that source must be rendered with unrestricted Parser conditional tags (Config\View::$restrictParserConditionals or the per-render restrictConditionals option left disabled). Applications that render only developer-controlled templates are not affected, and the attacker must already hold an authenticated account with template-editing rights (CVSS PR:L); no public exploit was identified at time of analysis, and the priority label places remediation in the current week rather than in an emergency window.

RemediationAI

Upgrade to CodeIgniter4 4.7.5 or later, and treat the upgrade as only half the fix: the advisory states that upgrading alone does not remove the exposure. For every template that can receive less-trusted source, enable Config\View::$restrictParserConditionals globally or pass the per-render restrictConditionals option, then verify that conditional tags in those templates no longer evaluate arbitrary expressions. If an immediate upgrade is not possible, apply the advisory's workarounds instead of running exposed templates: restrict template editing to users who are already trusted to execute PHP on the server, or stop rendering less-trusted template source through the Parser until the conditional restriction is in place - the trade-off being that you either widen the trusted-user population or suspend user-editable templating, and in both cases the underlying code path remains until 4.7.5 is deployed. Review existing stored templates from untrusted editors for injected conditional tags, since a persisted payload executes on each render. Full details and configuration guidance are in GHSA-4q58-jw8x-8cm7 (https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4q58-jw8x-8cm7) and the View Parser documentation linked from it.

Affected VersionsENISA

CodeIgniter4 0 <4.7.5

Affected Packages

euvd codeigniter4 fix: 4.7.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CodeIgniter4's View Parser is a lightweight templating layer that substitutes {placeholder} variables and supports conditional tags such as {if ...} / {else} / {endif} inside view source, compiling templates to PHP before rendering. The flaw is CWE-94 (Improper Control of Generation of Code), here a code injection class: the conditional-tag handling does not constrain what can be expressed inside those tags, so template source supplied by a less-trusted editor can carry PHP that the parser emits into the compiled template and the PHP runtime then executes. The trust boundary that is crossed is the template-editor role, which is normally expected to control presentation markup only, not server-side code. Because the injection is persisted in template source rather than in a request parameter, every subsequent render of that template re-executes the injected code. The upstream fix introduces explicit conditional restriction (Config\View::$restrictParserConditionals globally, or restrictConditionals per render), meaning the security property is not just the patched parser code but the configuration gate that must actually be switched on for each template that accepts untrusted source. Affected package coordinates are composer/codeigniter4/framework below 4.7.5 (CPE cpe:2.3:a:codeigniter4:codeigniter4).

Know when Codeigniter4 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Authenticated template-edit privilege sets PR:L; crafted conditional needs no special timing (AC:L) or user interaction (UI:N); PHP RCE yields full C/I/A on the host with no scope change.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 02, 2026 - 16:02 EUVD
CVE Published
Dec 02, 2026 - 14:37 cve.org
HIGH 8.7

DescriptionCVE.org

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.

Technical POC Analysis

CWE-94 (Improper Control of Generation of Code).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity vulnerability in the CodeIgniter4 View Parser (before version 4.7.5) allows authenticated users with template-editing rights to inject PHP code that executes on the server. This affects applications that let untrusted users modify template source and lack conditional restrictions, potentially leading to full application compromise. Leadership should prioritize remediation because it could enable unauthorized access to sensitive data and system control, though impact is limited to organizations with user-editable templates.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include enabling restrictParserConditionals in configuration or per-render, and restricting template editing privileges to trusted users.

Threat Intelligence Overview

Prevalence
Medium
popular PHP framework, but affected template-editing exposure is a narrow configuration
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-63223 CRITICAL POC
9.8 Jul 31

Unauthenticated file upload validation bypass in the CodeIgniter4 PHP framework (versions prior to 4.7.4) lets a remote

CVE-2026-63221 CRITICAL POC
9.4 Jul 31

SQL injection in CodeIgniter4's Query Builder deleteBatch() method (versions 4.3.0 through 4.7.3) allows user-controlled

CVE-2026-63222 HIGH POC
7.5 Jul 31

Path traversal file write in the CodeIgniter4 PHP framework prior to 4.7.4 lets remote unauthenticated attackers place u

CVE-2026-142155 CRITICAL
9.3 Dec 02

Remote code execution in CodeIgniter4 before 4.7.5 stems from filename-based upload validation rules that can be tricked

CVE-2026-142150 CRITICAL
9.2 Dec 02

SQL injection in CodeIgniter4 through 4.7.5 lets unauthenticated remote attackers break out of an already-escaped string

CVE-2026-63220 MEDIUM POC
4.8 Jul 31

HTTP security header spoofing in CodeIgniter4 prior to 4.7.4 allows remote unauthenticated attackers to trick the framew

CVE-2026-142151 HIGH
8.2 Dec 02

Information disclosure in the CodeIgniter4 CURLRequest component before 4.7.5 can leak a previously used Authorization h

CVE-2026-142153 HIGH
7.7 Dec 02

PHP code execution and unintended local file inclusion in CodeIgniter4 before 4.7.5 occur when view data is extracted in

CVE-2026-142152 MEDIUM
6.9 Dec 02

File upload validation bypass in CodeIgniter4 releases before 4.7.5 lets unauthenticated remote attackers slip a disallo

CVE-2026-130845 MEDIUM
5.3 Nov 17

Cross-site scripting in CodeIgniter4 before 4.7.5 allows an attacker who controls a single value rendered through the Vi

CVE-2026-142138 MEDIUM
5.3 Dec 02

Cross-site scripting in the CodeIgniter4 form helpers - parse_form_attributes(), form_input(), form_label(), form_dropdo

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy