🛡️ CVE-2024-47823 — livewire

🔴 CVSS 9.8 — Critical ⚠️ Exploit Public CWE-20 NVD
9.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Livewire Remote Code Execution on File Uploads

In livewire/livewire prior to v2.12.7 and v3.5.2, the file extension of an uploaded file is guessed based on the MIME type. As a result, the actual file extension from the file name is not validated. An attacker can therefore bypass the validation by uploading a file with a valid MIME type (e.g., image/png) and a “.php” file extension.

If the following criteria are met, the attacker can carry out an RCE attack:

  • Filename is composed of the original file name using $file->getClientOriginalName()
  • Files stored directly on your server in a public storage disk
  • Webserver is configured to execute “.php” files

PoC

In the following scenario, an attacker could upload a file called shell.php with an image/png MIME type and execute it on the remote server.

```php

class SomeComponent extends Component

{

use WithFileUploads;

#[Validate('image|extensions:png')]

public $file;

public function save()

{

$this->validate();

$this->file->storeAs(

path: 'images',

name: $this->file->getClientOriginalName(),

options: ['disk' => 'public'],

);

}

}

```

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2024-47823 is classified as CWE-20: Improper Input Validation. The application accepts input without checking that it has the expected form, so malformed values reach code that assumes they are well formed.

Affected software

CVE-2024-47823 is recorded against 2 packages.

  • livewire (from 3.0.0 up to 3.5.2)
  • livewire/livewire (fixed in 2.12.7)

Timeline and source

Published on 8 October 2024 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com
github.com
github.com
github.com

Details

Severity CRITICAL
CVSS Score 9.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE CWE-20
Public Exploit ⚠️ Yes
Source NVD
Published 2024-10-08
Updated 2026-08-12
Modified 2026-06-17

Affected Packages

Software From version Fixed in
livewire 3.0.0 3.5.2
livewire/livewire 2.12.7

Similar Threats

Exploit Protection

Are you running livewire?

CVE-2024-47823 carries CVSS 9.8 Critical rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2024-47823 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.