Remote code execution via MIME-based extension spoofing
Published Oct 8, 2024 · Updated Jul 17, 2025
Unrestricted file upload in Livewire before 2.12.7 or 3.5.2 allows remote authenticated users to execute PHP code via a crafted upload. TemporaryUploadedFile::generateHashNameWithOriginalNameEmbedded derives the temporary suffix from attacker-controlled MIME data, so extension validation accepts a PHP filename disguised as image/png. Code execution requires application code to reuse the original filename, save on a public disk, and expose .php files to a PHP-enabled web server.
Summary
What happened
Unrestricted file upload in Livewire before 2.12.7 or 3.5.2 allows remote authenticated users to execute PHP code via a crafted upload. TemporaryUploadedFile::generateHashNameWithOriginalNameEmbedded derives the temporary suffix from attacker-controlled MIME data, so extension validation accepts a PHP filename disguised as image/png. Code execution requires application code to reuse the original filename, save on a public disk, and expose .php files to a PHP-enabled web server.
The record
- CVE
- CVE-2024-47823
- Published
- Oct 8, 2024
- Updated
- Jul 17, 2025
- Vendor
- Livewire
- Product
- Livewire
- Classifications
- CWE-434, CWE-20, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 8, 2024CVE publishedPublication date reported by the CVE source.
- Jul 17, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <3.5.2
- Affected versionversion=< 2.12.7
- Affected versionversion=>= 3.0.0-beta.1, < 3.5.2
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream shell.php upload proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo