CVE-2025-54068: Livewire/livewire Livewire Is Vulnerable To Remote Vulnerability

CRITICAL
Advisory Identifier: GHSA-29cq-5w36-x7w3
CVSS 9.8
CWE-94
Published
Advisory Summary

CVE-2025-54068 is a CRITICAL (CVSS 9.8) livewire is vulnerable to remote vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Livewire/livewire libraries in the Packagist ecosystem. The issue involves livewire is vulnerable to remote command execution during component property update hydration. Remediation is available by upgrading affected packages to version 3.6.4.

CVE-2025-54068 at a Glance

CVE Identifier CVE-2025-54068
GHSA Identifier GHSA-29cq-5w36-x7w3
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Livewire/livewire
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-54068

To remediate this vulnerability, upgrade all affected Livewire/livewire dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

livewire/livewire fixed: 3.6.4
Upgrade livewire/livewire to 3.6.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for livewire/livewire

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-54068, inspect your project dependencies for Livewire/livewire:

inspect dependencies for livewire/livewire

Analyze the terminal output to locate any version of Livewire/livewire in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.6.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Livewire/livewire, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact In Livewire v3 (≤ 3.6.3), a vulnerability allows unauthenticated attackers to achieve remote command execution in specific scenarios. The issue stems from how certain component property updates are hydrated. This vulnerability is unique to Livewire v3 and does not affect prior major versions. Exploitation requires a component to be mounted and configured in a particular way, but does not require authentication or user interaction. ### Patches This issue has been patched in Livewire v3.6.4. All users are strongly encouraged to upgrade to this version or later as soon as possible. ### Workarounds There is no known workaround at this time. Users are strongly advised to upgrade to a patched version immediately. ### Resources No public references available at this time to avoid exposure. Details will be published after a responsible disclosure window.

CVE-2025-54068 Affected Livewire/livewire Versions

1 component(s)
Fixed Versions:
3.6.4
Product / Package Ecosystem Affected Versions Fixed Version
livewire/livewire
Packagist
≥ 3.0.0-beta.1
< 3.6.4
3.6.4

References

Frequently Asked Questions

What is CVE-2025-54068?
CVE-2025-54068 is a security vulnerability in Livewire/livewire involving Livewire is vulnerable to remote command execution during component property update hydration under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Livewire/livewire versions are affected?
Affected versions include releases prior to 3.6.4 across affected packages: livewire/livewire.
What version fixes CVE-2025-54068?
Upgrading to 3.6.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is livewire/livewire affected?
Yes, livewire/livewire is affected in releases prior to 3.6.4. Upgrade your dependency to 3.6.4 or later.
What is the CVSS score of CVE-2025-54068?
CVE-2025-54068 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2025-54068?
CVE-2025-54068 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Packagist dependencies for CVE-2025-54068?
Run the dependency tree command: 'inspect dependencies for livewire/livewire'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-29cq-5w36-x7w3",
  "modified" : "2026-03-20T21:28:57Z",
  "published" : "2025-07-17T20:26:45Z",
  "aliases" : [ "CVE-2025-54068" ],
  "summary" : "Livewire is vulnerable to remote command execution during component property update hydration",
  "details" : "### Impact\nIn Livewire v3 (≤ 3.6.3), a vulnerability allows unauthenticated attackers to achieve remote command execution in specific scenarios. The issue stems from how certain component property updates are hydrated. This vulnerability is unique to Livewire v3 and does not affect prior major versions. Exploitation requires a component to be mounted and configured in a particular way, but does not require authentication or user interaction.\n\n### Patches\nThis issue has been patched in Livewire v3.6.4. All users are strongly encouraged to upgrade to this version or later as soon as possible.\n\n### Workarounds\nThere is no known workaround at this time. Users are strongly advised to upgrade to a patched version immediately.\n\n### Resources\nNo public references available at this time to avoid exposure. Details will be published after a responsible disclosure window.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "livewire/livewire"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0-beta.1"
      }, {
        "fixed" : "3.6.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/livewire/livewire/security/advisories/GHSA-29cq-5w36-x7w3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54068"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/livewire/livewire/commit/ef04be759da41b14d2d129e670533180a44987dc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/livewire/livewire"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/livewire/livewire/releases/tag/v3.6.4"
  }, {
    "type" : "WEB",
    "url" : "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54068"
  }, {
    "type" : "WEB",
    "url" : "https://www.threathunter.ai/blog/iranian-threat-actor-tools-techniques-iocs-ioas"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-17T20:26:45Z",
    "nvd_published_at" : "2025-07-17T19:15:25Z"
  }
}