Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify CodeIgniter upload endpoint
-
DeliveryCraft multipart upload with '../../public/shell.php' filename
-
Exploitmove() writes file outside upload dir
-
ExecutionUploaded PHP lands in web root
-
PersistRequest file to run payload
-
ImpactRemote 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-51398
GHSA-hhmc-q9hp-r662
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB