Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as template editor
-
ExploitInject crafted Parser conditional tag
-
ExecutionApplication renders with unrestricted conditionals
-
ImpactArbitrary 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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.
More in Codeigniter4
View allUnauthenticated file upload validation bypass in the CodeIgniter4 PHP framework (versions prior to 4.7.4) lets a remote
SQL injection in CodeIgniter4's Query Builder deleteBatch() method (versions 4.3.0 through 4.7.3) allows user-controlled
Path traversal file write in the CodeIgniter4 PHP framework prior to 4.7.4 lets remote unauthenticated attackers place u
Remote code execution in CodeIgniter4 before 4.7.5 stems from filename-based upload validation rules that can be tricked
SQL injection in CodeIgniter4 through 4.7.5 lets unauthenticated remote attackers break out of an already-escaped string
HTTP security header spoofing in CodeIgniter4 prior to 4.7.4 allows remote unauthenticated attackers to trick the framew
Information disclosure in the CodeIgniter4 CURLRequest component before 4.7.5 can leak a previously used Authorization h
PHP code execution and unintended local file inclusion in CodeIgniter4 before 4.7.5 occur when view data is extracted in
File upload validation bypass in CodeIgniter4 releases before 4.7.5 lets unauthenticated remote attackers slip a disallo
Cross-site scripting in CodeIgniter4 before 4.7.5 allows an attacker who controls a single value rendered through the Vi
Cross-site scripting in the CodeIgniter4 form helpers - parse_form_attributes(), form_input(), form_label(), form_dropdo
EUVD-2026-141464
GHSA-w96m-gxpw-j6cv
NVD
CVE.org
Vulnrichment
Exploit-DB