CVE-2024-47823CWE-20

Livewire Remote Code Execution (RCE) on File Uploads

High · published October 8, 2024

CVSS v4.0
7.7
EPSS
1%
Percentile
57.6
In the wild
Unconfirmed
What it is

⚡ An uploaded file with a friendly MIME type could hide a nasty surprise! Before versions 2.12.7 and 3.5.2 of Livewire, attackers could slip a malicious PHP file past your defenses without breaking a sweat. 🔥 Think of it like allowing guests into your house just because they showed a nice invitation. If you don’t actually check their ID, they could walk in disguised as someone else and cause chaos! If an attacker successfully exploits this vulnerability, they could execute remote code on your server, accessing or altering sensitive data and wreaking havoc. It’s like giving them the keys to your entire digital kingdom, all thanks to a sneaky file upload.

Put simply

Think of it like allowing guests into your house just because they showed a nice invitation. If you don’t actually check their ID, they could walk in disguised as someone else and cause chaos! This vulnerability arises because Livewire fails to properly validate uploaded file extensions against their actual MIME types. An attacker can upload a .php file disguised as an image, which the server could then execute if it’s stored in a publicly accessible location and the webserver is set to execute .php files.

What to do

If an attacker successfully exploits this vulnerability, they could execute remote code on your server, accessing or altering sensitive data and wreaking havoc. It’s like giving them the keys to your entire digital kingdom, all thanks to a sneaky file upload. Upgrade to Livewire version 2.12.7 or 3.5.2 immediately to close this loophole. Ensure your webserver is configured to restrict the execution of files in publicly accessible storage. Regularly review and harden your file upload mechanisms for added security! You’ve got this! Follow these steps and you’ll be a security hero, keeping your application safe and sound. 🛡️

The record
Technical detail
CVSS v4.0
7.7 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.00846 · 57.6th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2024-10-08T17:48Z
EPSS history
Timeline
  • 08 OCT 17:48Z
    Livewire Remote Code Execution (RCE) on File Uploads
    cvelistv5