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
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)
- CVE-2026-142155Lets attackers get past upload checks and run PHP code. CVSS 9.8 CVE-2026-142155 advisory · CVE-2026-142155 write-up
- CVE-2026-142154Lets template editors run PHP code through template conditionals. CVSS 8.8 CVE-2026-142154 advisory · CVE-2026-142154 write-up
- CVE-2026-142151Lets attackers read the previous request's credentials and body. CVSS 8.2 CVE-2026-142151 advisory · CVE-2026-142151 write-up
Show 2 more
- CVE-2026-142153Lets attackers run PHP code or include unintended local files through view data keys. CVSS 7.7 CVE-2026-142153 advisory · CVE-2026-142153 write-up
- CVE-2026-142152Lets attackers slip a disallowed file past checks behind an empty upload entry. CVSS 6.9 CVE-2026-142152 advisory · CVE-2026-142152 write-up