Skip to main content

CodeIgniter CVE-2026-63222

| EUVDEUVD-2026-51398 HIGH
Path Traversal (CWE-22)
2026-07-31 GitHub_M GHSA-hhmc-q9hp-r662
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify CodeIgniter upload endpoint
  2. Delivery
    Craft multipart upload with '../../public/shell.php' filename
  3. Exploit
    move() writes file outside upload dir
  4. Execution
    Uploaded PHP lands in web root
  5. Persist
    Request file to run payload
  6. Impact
    Remote code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application (1) exposes a file-upload path reachable by the attacker and (2) invokes UploadedFile::move() with only the target directory and no second (name) argument, so the unsanitized client filename is used as the default. The attacker must control the multipart 'filename' field (always attacker-controlled in an HTTP upload) and embed path traversal sequences (e.g. '../../public/shell.php'). Limiting factors: the vulnerability is inert if the developer passes an explicit name to move(), if no upload endpoint is exposed, or on framework version 4.7.4+ where the default name is sanitized; achieving code execution (versus mere file write) further requires the traversal-reachable directory to be web-served and permit PHP execution. Per CVSS PR:N/UI:N the attack itself needs no authentication or user interaction, but the application-level coding precondition materially narrows which deployments are actually vulnerable.

Impact

The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N, 7.5) reflects a network-reachable, unauthenticated, integrity-only impact with no confidentiality or availability loss, which matches an arbitrary file-write primitive. The important nuance is that raw CVSS treats this as universally exploitable, but real exploitation is gated by an application-side precondition: the app must both expose an upload endpoint and call move() without a second argument. That is a common-but-not-guaranteed coding pattern, so the effective attackable population is a subset of CodeIgniter deployments. No EPSS score, KEV listing, or SSVC decision data was provided, so probabilistic and decision-framework signals are unavailable and cannot be weighed. There is no CISA KEV entry and no explicit POC flag, so this should be treated as a real but not confirmed-in-the-wild issue; the presence of a public upstream commit and demonstrative test raises the practical exploitability for anyone reversing the patch. Net: a genuine high-severity write primitive worth prompt patching, but its blast radius depends on how each application invokes the upload API.

Exploit ScenarioDerived

An attacker submits a multipart file-upload request to a vulnerable CodeIgniter4 endpoint, setting the multipart filename field to a traversal payload like '../../public/shell.php'. Because the application calls $file->move($destination) without a second argument, the framework writes the attacker's content to public/shell.php outside the intended upload folder; if that path is web-served and PHP-executable, the attacker then requests the file to achieve remote code execution. The upstream patch includes a test using exactly this '../../public/shell.php' payload, so a working proof-of-concept is effectively derivable from the fix even though no separately published exploit was identified.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 31, 2026

Path traversal file write in the CodeIgniter4 PHP framework prior to 4.7.4 lets remote unauthenticated attackers place uploaded files outside the intended directory whenever an application calls UploadedFile::move() without an explicit second (name) argument. Because the default used the raw client-supplied filename, traversal sequences such as '../../public/shell.php' could drop attacker-controlled content into web-accessible or sensitive locations, potentially enabling code execution on affected sites. No public exploit identified at time of analysis, though the fixing commit ships a regression test that concretely demonstrates the traversal payload.

RemediationAI

Vendor-released patch: 4.7.4 - upgrade the codeigniter4/framework dependency to v4.7.4 or later (composer update codeigniter4/framework) to have move() sanitize the client-provided filename by default; see the advisory at https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-hhmc-q9hp-r662 and release https://github.com/codeigniter4/CodeIgniter4/releases/tag/v4.7.4. If immediate upgrade is not possible, the direct compensating control is to never let move() derive its own name: explicitly pass a safe, application-generated target filename as the second argument (for example a random or hashed name with a validated extension), or call sanitize_filename() on the intended name before use - noting the trade-off that an explicitly supplied name is NOT sanitized by the framework, so the value you pass must already be safe. Additionally, restrict upload destination directories to non-web-served paths and enforce server-side extension/MIME allowlists so that even a stray write cannot become an executable web resource; the side effect is that legitimate workflows relying on original client filenames will see those names normalized or replaced.

Affected VersionsENISA

CodeIgniter4 < 4.7.4

Affected Packages

composer codeigniter4/framework fix: 4.7.4
euvd codeigniter4 fix: 4.7.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is CodeIgniter4's HTTP file-upload abstraction (system/HTTP/Files/UploadedFile.php), part of a full-stack PHP framework used to build web applications. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / path traversal): move() defaulted its target filename to $this->getName(), which returns the untrusted, browser-supplied multipart filename, and passed it into the filesystem path without normalization. The 4.7.4 fix routes the null-name path through the framework's security helper sanitize_filename(), which strips directory separators and traversal sequences (e.g. '../../public/shell.php' becomes 'publicshell.php'); a name explicitly passed by the developer as the second argument is still treated as the caller's responsibility and is not sanitized. The single CPE, cpe:2.3:a:codeigniter4:codeigniter4:*:*:*:*:*:*:*:*, scopes the flaw to the codeigniter4 framework package itself rather than any downstream application.

Know when PHP 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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 7.5 HIGH

Remote unauthenticated multipart upload with attacker-controlled filename yields an arbitrary file write (integrity high), with no inherent confidentiality or availability loss, matching AV:N/AC:L/PR:N/I:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Jul 31, 2026 - 06:15 EUVD
CVE Published
Jul 31, 2026 - 04:06 cve.org
HIGH 7.5

DescriptionCVE.org

CodeIgniter is a PHP full-stack web framework. Prior to 4.7.4, calling UploadedFile::move() without a second argument uses the client-provided filename without sanitization, allowing a remote attacker to use path traversal sequences to write uploaded content outside the intended directory when the application exposes an upload path. This issue is fixed in version 4.7.4.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

CodeIgniter4 versions prior to 4.7.4 contain a path traversal vulnerability in file upload handling that allows unauthenticated attackers to write files outside intended directories, potentially enabling remote code execution on affected web applications. Organizations using CodeIgniter4 must immediately audit their upload implementations and implement compensating controls, as no vendor patch is currently available. This affects any application that accepts file uploads without explicit filename validation.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Always specify explicit filename argument in UploadedFile::move() calls; (2) Implement strict server-side filename whitelist validation rejecting path traversal sequences (../, ..\ and encoded variants); (3) Store uploads outside web root with controlled serving via authenticated download handlers; (4) Apply principle of least privilege-remove execute permissions from upload directories and restrict write access; (5) Monitor for suspicious filenames in upload logs and filesystem access patterns; (6) Disable file upload functionality in non-production environments.

Threat Intelligence Overview

EPSS Score
0.4%
Top 63% exploitable
Prevalence
High
widely used open-source PHP web framework with large install base
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy