Skip to main content

Laravel File Manager CVE-2025-56399

HIGH
Code Injection (CWE-94)
2025-10-28 cve@mitre.org
8.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to file manager
  2. Delivery
    Upload PHP payload as .png
  3. Exploit
    Server saves file despite client rejection
  4. Execution
    Rename via API to .php
  5. Persist
    Request file public URL
  6. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

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

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.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

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

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.5%
Top 58% exploitable
Prevalence
Medium
popular Laravel file-manager Composer package, common in PHP web apps
Data Quality
4 sources
Confidence: Medium

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 No
EPSS 0.5%
Patch available No
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Code Injection CRITICAL

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.

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