Skip to content
RCE Write-up Advanced

The Livewire v3 RCE That Broke the Magic: Understanding CVE-2025�

Livewire v3 failed to validate the type and payload fields in synthetic tuples sent during hydration, allowing an attacker to reconstruct arbitrary PHP objects. An unauthenticated attacker could exploit a gadget chain to execute arbitrary PHP code on the server.

Hafiq Iqmal Follow

Published on systemweakness.com

If you’ve built a Laravel application with Livewire, you know the appeal. Write server-side PHP components, bind them to the frontend, and let the framework handle synchronizing state between client and server.

Hafiq Iqmal, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Livewire trusted client-supplied synthetic tuple data and passed the type and payload directly to the synthesizer without validating that the type was an allowed, legitimate synthesizer.

Impact

An unauthenticated attacker could execute arbitrary PHP code on any vulnerable server, and the vulnerability was actively exploited in the wild.

What the attacker needed

Livewire v3.0.0-beta.1 to 3.6.3; Publicly accessible Livewire endpoint; No authentication required

The fix

The vulnerability was fixed in Livewire 3.6.4 by adding an allowlist that validates the requested synthetic type before processing.

How it was found

  1. Identify the Livewire endpoint URL, typically /livewire/update or /livewire/message.
  2. Discover a valid component name by inspecting the HTML or error messages.
  3. Craft a synthetic tuple containing a gadget chain, such as a Guzzle FnStream object with a callback.
  4. Send an HTTP POST request to the Livewire endpoint with the crafted payload.
  5. The server deserializes the object, and when it is destroyed, the gadget chain executes arbitrary code.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Livewire is a tool that lets a web page talk to a PHP server without building a separate API. When the page sends data back, Livewire rebuilds PHP objects from that data. Because it did not check what kind of object was being rebuilt, an attacker could send a request that made the server create a dangerous object and run code.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Hafiq Iqmal

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.