critical CVSS 9.8

CVE-2025-14894·PHP vulnerability

Livewire Filemanager, commonly used in Laravel applications, contains LivewireFilemanagerComponent.php, which does not perform file type and MIME validation, allowing for RCE through upload of a malicious php file that can then be executed via the /storage/ URL if a commonly performed setup process within Laravel applications has been completed.

Severity
critical
Software
PHP
Fixed in
1.0.0
Published
2026-01-16

Affected versions

Until: 1.0.0

Fixed in: 1.0.0

How to fix this CVE

Upgrade Livewire Filemanager to version 1.0.0 or later to resolve this critical remote code execution vulnerability. The vulnerability stems from missing file type and MIME validation in the upload handler, which allows attackers to bypass security controls. Additionally, review your Laravel storage configuration to ensure uploaded files are not directly executable through web-accessible paths.

sudo dnf update php -y

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST /upload|PUT /files with Content-Type: multipart/form-data containing .php files; GET requests to /storage/app/uploads/.*\.php followed by HTTP 200 responses

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Block POST and PUT requests to /upload and /files endpoints unless originating from authenticated users; restrict file uploads with Content-Type application/x-php, application/x-httpd-php, or text/x-php; implement strict file extension whitelist allowing only safe formats (jpg, png, pdf, docx)

How to check if you are affected

  1. Check the installed Livewire Filemanager version: grep -r "version" vendor/livewire-filemanager/filemanager/composer.json 2>/dev/null | head -1
  2. Verify if the vulnerable component is active by checking for LivewireFilemanagerComponent.php in your Laravel project: find . -name 'LivewireFilemanagerComponent.php' -type f
  3. Search Laravel logs for suspicious POST/PUT requests to /upload or /files endpoints: grep -i 'POST.*upload\|PUT.*files' storage/logs/laravel.log | tail -50
  4. Confirm the patch is applied by verifying MIME type validation exists in the upload handler: grep -A 5 'MIME\|mime_type\|validateMime' vendor/livewire-filemanager/filemanager/src/*.php

Indicators of compromise

  • /storage/app/uploads/.*\.php
  • POST /upload with .php attachment
  • Content-Type: application/x-httpd-php in multipart upload

FAQ

What is CVE-2025-14894?

CVE-2025-14894 is a critical remote code execution vulnerability in Livewire Filemanager where the upload handler fails to validate file types and MIME types, enabling attackers to upload executable PHP files that can be accessed and executed through the Laravel /storage/ directory.

Is CVE-2025-14894 being actively exploited?

According to CISA KEV data, this vulnerability is not currently listed as actively exploited in the wild, but public technical documentation exists describing the exploitation method. Organizations should treat this as a high-priority patch regardless of active exploitation reports.

What versions of PHP are affected by CVE-2025-14894?

CVE-2025-14894 affects Livewire Filemanager versions prior to 1.0.0. The vulnerability is not specific to a PHP version but rather affects any Laravel application using vulnerable versions of the Livewire Filemanager component.

How do I check if my server is vulnerable to CVE-2025-14894?

Run: composer show livewire-filemanager 2>/dev/null | grep -i version. If the version is below 1.0.0 or the package is not found but you have Laravel installed, check for the presence of filemanager routes in your routes/ directory and verify that /storage/ is web-accessible via your web server configuration.

Does Defensia detect CVE-2025-14894?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Livewire Filemanager is installed on a monitored server, CVE-2025-14894 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2026-39337CVSS 10ChurchCRM is an open-source church management system. Prior to 7.1.0, critical pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.
CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-14894. Free for 1 server.

Get started free