Laravel File Manager CVE-2025-56399
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to file manager
-
DeliveryUpload PHP payload as .png
-
ExploitServer saves file despite client rejection
-
ExecutionRename via API to .php
-
PersistRequest file public URL
-
ImpactExecute code as web app
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated session with access to the file manager's upload and rename API endpoints (CVSS PR:L). The concrete prerequisites are: (1) the laravel-file-manager upload endpoint is reachable and its storage directory is served under a public, PHP-executing web path; (2) the rename API is enabled and permits changing a file's extension to .php; and (3) the host allows PHP execution in the upload location. Exploitation is LIMITED by the need for valid credentials/authorization to the file manager and by the requirement that uploaded files land in a web-accessible, script-executing directory - deployments that store uploads outside the web root or disable PHP execution there are not exploitable via this path. No user interaction beyond the attacker's own requests is needed (UI:N). |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H, score 8.8) reflects a network-reachable, low-complexity path to full RCE that nonetheless requires some level of authenticated access (PR:L) - the attacker must already be able to reach the file-manager upload and rename APIs. This authentication requirement is the primary limiting factor and separates it from a pre-auth internet-wide threat. EPSS is low-to-moderate (0.55%, 42nd percentile) and the CVE is not in CISA KEV, so there is no evidence of active exploitation; however, the technique is simple and reliable once access is obtained, and a CVE-named GitHub repository suggests a working PoC. Net: a genuine high-severity issue for any deployment that grants file-manager access to semi-trusted or lower-privilege users, but not an unauthenticated mass-exploitation scenario. The signals are internally consistent - no contradiction between vector and description. |
| Exploit ScenarioDerived | An attacker with a low-privilege but valid file-manager account uploads shell.png containing a PHP web shell; the browser reports the upload as rejected, but the file is written to the server anyway. The attacker calls the rename API to change shell.png to shell.php, then requests the file's public URL, triggering server-side PHP execution and gaining code execution in the application context. Given AV:N/AC:L, the steps are straightforward HTTP requests and a public PoC repository appears to exist. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 05, 2026
Remote code execution in alexusmai laravel-file-manager (versions 3.3.1 and earlier) lets an authenticated user with file-manager access run arbitrary PHP on the server by uploading a PHP payload disguised with a .png extension, then abusing the rename API to give it a .php extension so it executes when requested via a public URL. The flaw stems from client-side-only upload validation combined with an unrestricted rename operation and web-accessible storage. No CISA KEV listing; EPSS is a modest 0.55% (42nd percentile), but a dedicated GitHub repository referencing this CVE indicates public proof-of-concept material likely exists.
RemediationAI
No vendor-released patched version was identified in the provided data, so treat fix availability as unconfirmed: monitor the alexusmai/laravel-file-manager GitHub project and Packagist for a release above 3.3.1 and upgrade to it once published. As specific compensating controls in the interim: configure the web server (or the storage disk) so the upload directory cannot execute PHP - for Apache add 'php_admin_flag engine off' or remove the PHP handler for that path, or on nginx route the upload location without the PHP FastCGI pass; store uploads outside the public web root and serve them only through a controller that streams content with a forced non-executable content type; and restrict or disable the rename API, or enforce a server-side allowlist of permitted extensions on both upload and rename, since client-side validation is bypassable. Also limit file-manager access to trusted administrators only. Trade-offs: disabling PHP execution in the storage path is low-impact and highly effective; disabling rename removes legitimate functionality; serving through a controller adds overhead but closes direct-URL execution. Reference the tracking repository at https://github.com/Theethat-Thamwasin/CVE-2025-56399 for PoC details when validating fixes.
Affected ProductsAI
alexusmai/laravel-file-manager version 3.3.1 and all prior releases are affected, deployed as a Laravel package within host applications. No CPE string was provided in the intelligence data, and the only reference is a third-party GitHub repository (https://github.com/Theethat-Thamwasin/CVE-2025-56399); no official vendor advisory URL was supplied. Applications embedding this package and exposing its upload/rename endpoints to non-administrative users are the exposed surface.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
alexusmai/laravel-file-manager is a Composer package that adds a Vue.js-based file browser and upload/rename/delete API to Laravel applications, typically exposing a storage disk over HTTP. The root cause is CWE-94 (Code Injection): upload restrictions are enforced only in the client-side JavaScript, so a server-side path still persists the file even after the browser reports a validation failure. Because the package also exposes a rename endpoint that does not restrict target extensions, and uploaded content is stored in a directory served directly by the web server, an operator can convert an image-named payload into an executable .php script that the PHP interpreter runs on access. The dangerous combination is trusted-client validation plus an extension-agnostic rename plus web-reachable storage.
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:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable APIs and simple HTTP steps give AV:N/AC:L; a valid file-manager account is required so PR:L, and full RCE yields C:H/I:H/A:H with unchanged scope.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
alexusmai laravel-file-manager 3.3.1 and before allows an authenticated attacker to achieve Remote Code Execution (RCE) through a crafted file upload. A file with a '.png extension containing PHP code can be uploaded via the file manager interface. Although the upload appears to fail client-side validation, the file is still saved on the server. The attacker can then use the rename API to change the file extension to .php`, and upon accessing it via a public URL, the server executes the embedded code.
Executive ViewAI
Laravel File Manager (versions 3.3.1 and earlier) contains a remote code execution vulnerability allowing authenticated file-upload users to execute arbitrary PHP code on affected servers by bypassing upload validation and exploiting an unrestricted rename function. Organizations deploying this component face direct risk to server integrity if they grant file-upload access to any non-administrative users. Immediate identification of affected systems and access control review are required.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict file-upload access to system administrators only; (2) Implement server-side file-type validation and reject files with double extensions or PHP-executable MIME types; (3) Store all uploaded files outside the web root and serve through a wrapper script that validates content-type before delivery; (4) Disable PHP execution in upload directories via web server configuration (.htaccess or nginx conf); (5) Enable detailed audit logging of all file operations and upload attempts for forensic response.
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
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
NVD
CVE.org
EPSS
GitHub
Exploit-DB