Code InjectionWeakness · CWE-94

CVE-2025-56399

HIGH · 8.8 CVSS v3.1 Published 2025-10-28
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
94/100
Remediation priority · Urgent
Remotely reachable Zero-click

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 · unedited
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.

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 confidence

In 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.

MitigationImplement 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.

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 checks

Work through these to decide whether this CVE applies to you.

  1. Identify laravel-file-manager installation
    Locate 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)
  2. Verify upload feature is accessible
    Confirm the file manager upload endpoint exists and is accessible to authenticated users by reviewing your routes/web.php and authentication middleware configuration
    Affected if unauthenticated or unauthenticated users can access the upload functionality
  3. Check upload directory PHP execution status
    Inspect 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 directory
    Affected if PHP files can be executed from the configured upload directory
  4. Confirm rename API is enabled
    Review routes/file-manager.php or the JavaScript configuration to verify the rename operation is not disabled in the UI permissions or API access controls
    Affected if rename functionality is available to the attacker
  5. Assess public URL access to uploads
    Determine if uploaded files are served from a web-accessible path by checking the disk configuration in config/filesystems.php
    Affected 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.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Implement 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.

Recommended fix Moderate confidence

laravel-file-manager version 3.3.2 or later

  1. 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. 2. Run 'composer require alexusmai/laravel-file-manager:^3.3.2' to upgrade to the fixed version
  3. 3. Clear Laravel cache with 'php artisan cache:clear' and 'php artisan config:clear'
  4. 4. Test file upload functionality to ensure the fix doesn't break legitimate uploads
  5. 5. Verify that PHP files cannot be uploaded even with changed extensions
Caveat Minor version upgrade - unlikely to have breaking changes, but test custom integrations

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing3.0 h
  • Review / QA2.0 h
14.0 hours of engineering $2,490
Get help mitigating

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 locally
dbcve dependency scanner

Check 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-56399 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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