CVE-2025-56399 Details
Description
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.
A remote code execution vulnerability has been identified in Laravel File Manager versions through 3.3.1. This issue allows authenticated attackers to execute arbitrary PHP code on the server by uploading a file with a permitted extension, such as .png or .pdf, that contains malicious PHP code. After the file is uploaded, the attacker can rename it to a .php extension and access it via a public URL to execute the embedded code. Alternatively, the 'Create File' function can be used to create a .php file, insert malicious code, and access it through a public URL.
To address this vulnerability, it is recommended to implement server-side validation of file MIME types and magic bytes to ensure that uploaded files correspond with their extensions. A strict whitelist of allowed file extensions should be enforced, rejecting executable extensions like .php. Additionally, file renaming should be restricted to prevent changing extensions to executable formats without further validation, and script or PHP execution should be disabled in directories where files are uploaded.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 28, 2025CISA-ADP
Assessed Oct 29, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Theethat-Thamwasin/CVE-2025-56399 | [email protected] | ExploitTechnical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| alexusmai laravel-file-manager | <v3.3.1 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 5, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 29, 2025 | CVE Modified | CISA-ADP |
| Oct 28, 2025 | New CVE Received | [email protected] |
Volerion