Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

CodeIgniter4 Parser Template Code Injection (CVE-2026-142154)

CVE-2026-142154 is a CodeIgniter4 View Parser code injection flaw affecting applications that let less-trusted users edit template source.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
2 min read
CVE ID
CVE-2026-142154
Vendor
CodeIgniter4
Affected Product
CodeIgniter4 (codeigniter4/framework)
Exploitation
Not confirmed
Published
2026-12-02

The vendor says PHP execution is possible when the application renders those templates with unrestricted Parser conditional tags. A network-facing template editor is a relevant exposure only when the user can edit the source and the application later renders it under those conditions.The vendor rates the issue High and scores it CVSS 3.1 8.8. The VulnCheck CNA record scores it CVSS 4.0 8.7 (High) and CVSS 3.1 8.8 (High). For product context, see the vulnerability intelligence platform.

What it allows

How Can CVE-2026-142154 Lead to PHP Execution?

The vendor locates the trust boundary at editable View Parser template source. A less-trusted editor can place crafted conditional tags in that source. Rendering those tags without the conditional restriction can then execute PHP code on the application server.

This is a conditional exposure, not a general claim about every CodeIgniter4 application. The vendor says applications using only developer-controlled templates are unaffected. For the consequence of server-side code execution, see the remote code execution explanation.

The CISA KEV catalog version dated 30 November 2026 does not list this CVE. Our defensive reading is to prioritize deployed applications where a lower-trust user can modify template source and those templates are rendered by the Parser. Review editor permissions and the rendering configuration before treating a template-management feature as exposed.

Who is affected

Which CVE-2026-142154 Deployments Need Action?

The CodeIgniter4 advisory lists codeigniter4/framework versions before 4.7.5 as affected and 4.7.5 as patched. Its impact statement requires two application conditions: less-trusted users can edit template source, and Parser conditional tags remain unrestricted when that source is rendered. The advisory says upgrading alone does not remove this exposure.

Upgrade affected installations to 4.7.5 or later. For every affected template, enable ConfigView::$restrictParserConditionals or the per-render restrictConditionals option, as the vendor directs. If those changes cannot be completed immediately, limit editing to users trusted to execute server-side PHP and avoid rendering less-trusted source with the Parser.

Inventory the deployed Composer package and the applications that render editable templates. Verify the running release and the effective conditional setting in each deployment after the change. Record the verified version and configuration in the patch management process.

Timeline

  1. 2026-10-09

    CodeIgniter4 published GHSA-4q58-jw8x-8cm7 and identified 4.7.5 as the patched release.

  2. 2026-12-02

    The VulnCheck CNA published the CVE-2026-142154 record.

What to do

  1. Find editable Parser templates

    Identify applications where less-trusted users can edit template source. Confirm whether those templates are rendered with Parser conditional tags.

  2. Upgrade the framework

    Upgrade codeigniter4/framework to 4.7.5 or later. Verify the release actually loaded by each deployed application process.

  3. Restrict conditionals

    Enable ConfigView::$restrictParserConditionals or per-render restrictConditionals for every affected template. Confirm the effective setting after deployment; the vendor says upgrading alone is insufficient.

  4. Review exposed access

    Check who can edit template source and review relevant template changes and application logs. Treat suspicious changes as investigation leads, not proof of this CVE being exploited.

What Brandefense can do

Frequently Asked Questions

What must an attacker control to exploit CVE-2026-142154?

The vendor says an attacker must be able to edit View Parser template source that the application later renders with unrestricted conditional tags.

Does upgrading to 4.7.5 fully address the exposure?

The vendor says no. Enable the global conditional restriction or the per-render option for every affected template, and verify that setting after upgrading.

Are developer-controlled templates affected?

The CodeIgniter4 advisory says applications using only developer-controlled templates are unaffected by this issue.

Sources

  1. PHP Code Execution Through Parser Conditionals in User-Editable TemplatesCodeIgniter4
  2. CVE-2026-142154 RecordVulnCheck CNA via CVE Program
  3. Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →