CVE-2025-56399
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedalexusmai 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceIn alexusmai laravel-file-manager through version 3.3.1, an authenticated attacker can bypass client-side file validation to upload a .png file containing PHP code. The file is saved despite validation appearing to fail. The attacker then uses the rename API to change the extension to .php, and accessing the file via a public URL results in server-side code execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify laravel-file-manager installationLocate the package in your Laravel project: check vendor/alexusmai/laravel-file-manager/composer.json for the installed version, or run 'composer show alexusmai/laravel-file-manager'Affected if installed version is 3.3.1 or earlier (any version through 3.3.1)
-
Verify upload feature is accessibleConfirm the file manager upload endpoint exists and is accessible to authenticated users by reviewing your routes/web.php and authentication middleware configurationAffected if unauthenticated or unauthenticated users can access the upload functionality
-
Check upload directory PHP execution statusInspect your file manager configuration (config/file-manager.php) for the upload directory path, then verify if .htaccess or nginx config disables PHP execution in that directoryAffected if PHP files can be executed from the configured upload directory
-
Confirm rename API is enabledReview routes/file-manager.php or the JavaScript configuration to verify the rename operation is not disabled in the UI permissions or API access controlsAffected if rename functionality is available to the attacker
-
Assess public URL access to uploadsDetermine if uploaded files are served from a web-accessible path by checking the disk configuration in config/filesystems.phpAffected if uploaded files are accessible via a public URL without server-side restrictions
You are affected if you run laravel-file-manager version 3.3.1 or earlier AND your upload directory allows PHP execution AND the rename API is accessible to authenticated attackers.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedImplement server-side file type validation (MIME type and magic bytes) before saving files, store uploaded files outside the web root or disable PHP execution in the upload directory, and validate rename operations to prevent extension changes to executable types.
laravel-file-manager version 3.3.2 or later
- 1. Identify the current version of alexusmai/laravel-file-manager in your project (check composer.json or vendor/alexusmai/laravel-file-manager/composer.json)
- 2. Run 'composer require alexusmai/laravel-file-manager:^3.3.2' to upgrade to the fixed version
- 3. Clear Laravel cache with 'php artisan cache:clear' and 'php artisan config:clear'
- 4. Test file upload functionality to ensure the fix doesn't break legitimate uploads
- 5. Verify that PHP files cannot be uploaded even with changed extensions
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,984.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-56399 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-56399 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data