# CodeIgniter4 before 4.7.5 Upload Validation Bypass via Trailing Dots and PHP Extensions

CVE record · `CVE-2026-142155`

- **Identifiers:** `CVE-2026-142155`
- **State:** Confirmed
- **Severity:** CVSS 9.3 Critical
- **Critical:** Yes: CVSS 9+
- **CNA:** VulnCheck
- **Weakness (CWE):** [CWE-434](https://cwe.mitre.org/data/definitions/434.html)
- **Tags:** [Unrestricted file upload](https://agentprime.io/advisories/tag/file-upload.md)
- **Technologies:** [CodeIgniter4](https://agentprime.io/advisories/technology/codeigniter4.md)
- **Published:** 2 Dec 2026
- **Updated:** 2 Dec 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: VulnCheck) at 2 Dec 2026, 14:37 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Critical

Critical, because:

- CVSS score 9.3: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected products, as the CNA wrote them

- Vendor: codeigniter4. Product: CodeIgniter4.
  - affected: `before 4.7.5` (semver)
  - unaffected: `4.7.5` (semver)
  - Other versions: unaffected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> CodeIgniter4 versions before 4.7.5 can be bypassed in upload validation: the is_image and mime_in rules accept filenames with trailing dots that hide a PHP extension, and these rules and ext_in accept a PHP extension placed before the final image extension. An attacker who can submit uploads can use this to plant a PHP file, which can lead to remote code execution when the application stores client-supplied filenames in a web directory that runs PHP. Upgrade to CodeIgniter4 4.7.5 or later.

Written 2 Dec 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 9.3 Critical, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`, from CNA (VulnCheck) (used for this record)
- 9.8 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from CNA (VulnCheck)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0098, the 63rd percentile, on 3 Dec 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 2 Dec 2026, 14:37 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2026-142155)
- 2 Dec 2026, 14:50 UTC: First seen by agentprime
- 2 Dec 2026, 15:17 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-142155)

## Sources

- [CVE List: CVE-2026-142155](https://www.cve.org/CVERecord?id=CVE-2026-142155)
- [NVD: CVE-2026-142155](https://nvd.nist.gov/vuln/detail/CVE-2026-142155)

### References from the CNA

- <https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4hwf-v4mp-hf6c> (vendor-advisory)
- <https://www.vulncheck.com/advisories/codeigniter4-before-4.7.5-upload-validation-bypass-via-trailing-dots-and-php-extensions> (third-party-advisory)

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2026-142155>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2026-142155/>. Everything for agents: <https://agentprime.io/llms.txt>.
