CVE-2024-55661 Laravel Pulse Allows Remote Code Execution via Unprotected Query Method
Authenticated users can execute arbitrary code via the unprotected remember method in Laravel Pulse dashboard components.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-55661?
CVE-2024-55661 is a high-severity code injection vulnerability in laravel pulse, published on 13 Dec 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Laravel Pulse is a real-time application performance monitoring tool and dashboard for Laravel applications. A vulnerability has been discovered in Laravel Pulse prior to version 1.3.1 that could allow remote code execution through the public `remember()` method in the `Laravel\Pulse\Livewire\Concerns\RemembersQueries` trait. This method is accessible via Livewire components and can be exploited to call arbitrary callables within the application. An authenticated user with access to Laravel Pulse dashboard can execute arbitrary code by calling any function or static method in which the callable is a function or static method and the callable has no parameters or no strict parameter types. The vulnerable to component is `remember(callable $query, string $key = '')` method in `Laravel\Pulse\Livewire\Concerns\RemembersQueries`, and the vulnerability affects all Pulse card components that use this trait. Version 1.3.1 contains a patch.
Weakness: CWE-94
Which versions are affected by CVE-2024-55661?
2 open source packages ship an affected version, including laravel/pulse. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
laravel/pulse Packagist | All versions | 1.3.1 |
laravel/pulse Packagist | All versions | 1.3.1 |
Products include Laravel Pulse.
How do I fix CVE-2024-55661?
Upgrade laravel/pulse to 1.3.1 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-55661 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-55661 exists.
Public exploit code: 1 Exploit-DB entry.
Sources
Also known as GHSA-8vwh-pr89-4mw2.