CVE-2025-56399: Authenticated RCE via crafted upload and rename in alexusmai laravel-file-manager
CVE-2025-56399 affects alexusmai laravel-file-manager 3.3.1 and earlier. An authenticated attacker can upload a crafted file using the file manager interface where the filename uses a .png` extension and the file contents contain PHP code. Although the upload appears to be rejected by client-side validation, the file is still written to the server. The attacker can then invoke the application's rename API to change the uploaded file's extension to .php. If the resulting file is reachable through a public URL and processed by the web server's PHP handler, requesting that file causes execution of the embedded PHP code, resulting in remote code execution. The issue is fundamentally an unrestricted or improperly validated file upload combined with unsafe post-upload file renaming and executable web exposure.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an authenticated attacker to achieve remote code execution in the context of the web application/server process. This can enable full compromise of the application, arbitrary command execution, deployment of webshells, access to sensitive data available to the application, modification or deletion of hosted content, and potential lateral movement or further privilege escalation depending on server configuration and surrounding environment.
Mitigation
If you can’t patch tonight, do this now.
Disable or restrict file upload and rename functionality for untrusted users until a fix is applied. Prevent execution of PHP and other server-side script types in upload directories through web server configuration. Limit public URL exposure of uploaded files, enforce strong authentication and least-privilege access to the file manager, monitor for suspicious uploads and rename operations, and scan existing upload locations for webshells or files whose content does not match their original extension.
Remediation
Patch, then assume compromise.
Upgrade to a fixed version if one is available from the vendor. If no patched release is currently available, modify the application so that server-side validation strictly enforces an allowlist of permitted file types and extensions, rejects filenames with malformed or dangerous suffixes, verifies MIME type and content independently of client-side checks, and prevents renaming uploaded files to executable extensions. Store uploaded files outside the web root or in a location that cannot be executed by the web server, and ensure uploaded content is served as inert data only.
Exploits
3 exploits validated by Mallory's analysis.
Frequently asked questions
- Is CVE-2025-56399 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2025-56399 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-56399?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2025-56399, the earliest disclosed Sep 24, 2025.
- Is there a patch for CVE-2025-56399?
- Upgrade to a fixed version if one is available from the vendor. If no patched release is currently available, modify the application so that server-side validation strictly enforces an allowlist of permitted file types and extensions, rejects filenames with malformed or dangerous suffixes, verifies MIME type and content independently of client-side checks, and prevents renaming uploaded files to executable extensions.
- How severe is CVE-2025-56399?
- CVE-2025-56399 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 0.61% (50th percentile) as of Sep 25, 2026.
Recent activity
2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.