Patch Ticker
EnglishEN
Urgent

CodeIgniter4 upload check bypass allows PHP code execution (before 4.7.5)

CVE-2026-142155 and 4 more

The PHP web framework CodeIgniter4 can let attackers get past upload checks and hack the server!

CVE
CVE-2026-142155 and 4 more
Score
CVSS 9.8 · CVE-2026-142155
Public date
2026-10-09
First seen
9.8
Products
Disclosed together CodeIgniter4

Mitigation

Update CodeIgniter4 to 4.7.5 or later. CVE-2026-142154 is not closed by the update alone, so turn on Config\View::$restrictParserConditionals or the per-render restrictConditionals option.

Can't update yet?

Add this line to the config file:

Config\View::$restrictParserConditionals

A wrong setting can stop the service or lock you out. Check the source links below first.

Summary

In CodeIgniter4 versions before 4.7.5, upload file checks can be bypassed, letting an unauthenticated remote attacker run PHP code on the web server. The same 4.7.5 release also covers flaws in templates, view data, request options and empty upload entries.

Affected when

  • CVE-2026-142155 client-supplied filenames kept in a web directory that runs PHP
  • CVE-2026-142152 multiple-file upload used and uploaded files web-accessible
  • CVE-2026-142154 users can edit template source
  • CVE-2026-142154 Config\View::$restrictParserConditionals or the restrictConditionals option is off
  • CVE-2026-142151 CURLRequest client reused after a failed request
  • CVE-2026-142153 view data key names chosen from user input

2 other Incidents of this product in the last 30 days

Incidents by product: CodeIgniter4

Other recent Incidents of CodeIgniter4

5 CVEs (every link below opens in a new tab)

Read the advisory · github.com (opens in a new tab)

Each of the 5 CVEs (every link below opens in a new tab)

Show 2 more