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 -yDefensia 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 responsesWAF 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
- Check the installed Livewire Filemanager version: grep -r "version" vendor/livewire-filemanager/filemanager/composer.json 2>/dev/null | head -1
- Verify if the vulnerable component is active by checking for LivewireFilemanagerComponent.php in your Laravel project: find . -name 'LivewireFilemanagerComponent.php' -type f
- 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
- 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
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