Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2025-56399: Authenticated RCE via crafted upload and rename in alexusmai laravel-file-manager

Published Oct 28, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS0.61%50th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2025-56399CWE-434

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

3 exploits validated by Mallory's analysis.

View more in app →
CVE-2025-56399Repository contains a small standalone Python mass-exploitation tool for CVE-2025-56399 targeting alexusmai/laravel-file-manager, with two near-duplicate implementations: a synchronous threaded version using requests (CVE-2025-56399.py) and an asynchronous version using httpx (CVE-2025-56399-httpx.py). Supporting files are README.md, requirements.txt, LICENSE, and .gitignore. Core capability: the scripts take a user-supplied target list, normalize each entry into HTTP/HTTPS base URLs, probe several Laravel File Manager initialize endpoints, attempt to obtain a CSRF token from the file manager UI, site root, or a list of common public/auth pages, then derive related /upload and /url endpoints. They generate a random PHP file name and a simple PHP web shell payload that prints a marker and exposes a secondary file-upload form. After upload, the code requests the resulting shell URL and classifies it as CONFIRMED, UPLOADED, or UNVERIFIED based on marker presence and HTTP response. The exploit is not just a detector: it actively attempts file upload and persistence via a web shell. It is operational rather than framework-based, with hardcoded behavior and limited customization. The code includes concurrency controls (50 threads/workers), randomized User-Agent support via fake-useragent, CSRF scraping via regex, and output logging to vulnerable.txt and uploaded.txt. No external C2 or hardcoded remote infrastructure is present; all network interaction is directed at user-provided targets and the enumerated application paths.im-hanzou · Disclosed Mar 8, 2026 · python · networkOperationallaravel-filemanager-unrestricted-uploadThis repository is a small standalone Python 2 exploit PoC for CVE-2025-56399 affecting alexusmai/laravel-file-manager <= 3.3.1. The repo contains three files: README.md with vulnerability and usage documentation, lfm.py as the main exploit script, and requirements.txt listing requests and colorama. The exploit is not part of a larger framework. The main capability is authenticated remote code execution through unrestricted file upload. The script accepts a list of target base URLs, probes several common Laravel FileManager integration paths, and identifies a vulnerable instance by checking for the marker string vendor/file-manager/js/file-manager.js in the returned HTML. It then extracts a CSRF token from either a meta tag or hidden form field, calls /file-manager/initialize to obtain the configured disk key, and uses /file-manager/upload to upload two files: a .htaccess file and a PHP web shell disguised with image/gif content type. After upload, the script calls /file-manager/url?disk=...&path=... to obtain the public URL of the uploaded file. It verifies exploitation by requesting the shell with ?shinday=1 and checking for the string 'Shinday'. Successful shell URLs are appended to valid.txt. The embedded PHP payload acts as a simple web shell: when activated with the query parameter, it prints php_uname output and exposes a file upload form for staging additional tools; otherwise it emits a minimal GIF89a image to appear benign. Operationally, the script uses requests.Session, disables TLS verification warnings, and processes targets concurrently with a 5-thread pool. This is a real exploit rather than a detector-only script because it performs upload, deployment, and execution verification of a server-side payload.Jenderal92 · Disclosed Jun 28, 2026 · python · markdown · web · networkOperationalCVE-2025-56399This repository documents a proof-of-concept (PoC) exploit for CVE-2025-56399, an authenticated remote code execution (RCE) vulnerability in laravel-file-manager versions 3.3.1 and below. The repository contains two markdown files: a detailed PoC walkthrough (CVE-2025-56399/POC-CVE-56399.md) and a README summarizing the vulnerability, impact, and remediation. No executable code is present; the PoC is described step-by-step with screenshots and example payloads. The exploit leverages the ability for authenticated users to upload files with allowed extensions (e.g., .png, .pdf) containing PHP code, then rename them to .php, or to directly create and edit .php files. Once the malicious file is accessible via a public URL (e.g., http://server-ip-address/storage/php.php), the attacker can execute arbitrary PHP code, achieving RCE. The repository is intended for educational and disclosure purposes, providing clear instructions for reproducing the vulnerability and understanding its impact.Theethat-Thamwasin · Disclosed Sep 24, 2025 · networkPoC
FAQ

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.
Activity feed

Recent activity

2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.