CVE-2025-31114

Fooocus webui vulnerable to Remote Code Execution

Published Aug 11, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
Fooocus is an image generating software. In versions 2.5.5 and prior, the Fooocus web UI is vulnerable to remote code execution due to the unsafe use of eval when processing metadata JSON. An attacker with access to the Fooocus web UI may be able to execute arbitrary code on the instance. As of time of publication, no known patched versions are available, but a suggested fix pull request is available.

Analysis

AI-generated

Technical impact

Fooocus, an image generation tool, contains a critical flaw in its web UI. The application processes metadata JSON by invoking JavaScript's eval function without validating the input, allowing an attacker who can submit data to the web UI to execute arbitrary code on the server. This is a classic arbitrary code execution weakness (CWE‑95) and could compromise confidentiality, integrity, and availability of the entire instance.

Affected Systems

The flaw affects the Fooocus web UI supplied by the lllyasviel project. All releases up to and including version 2.5.5 are vulnerable. No fixed release was available at the time of discovery, although a pull request containing the fix exists.

Risk and Exploitability

The CVSS score of 9.3 indicates a critical severity. Based on the description, the likely attack vector is through the publicly accessible web UI that accepts metadata JSON; an attacker can submit specially crafted data to trigger eval and execute code. With no publicly known exploits and an EPSS score of <1%, exploitation is considered unlikely but possible. The vulnerability’s impact would allow an attacker to compromise confidentiality, integrity and availability of the entire instance. The CVE is not listed in the CISA KEV catalog, so official advisories are limited.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Merge the pull request that removes the unsafe eval from metadata processing (e.g., PR #4207).
  • Restrict access to the Fooocus web UI by enabling authentication or placing it behind a firewall so only trusted users can submit metadata.
  • Consider disabling the metadata upload feature until the fix is implemented to eliminate the attack surface.
  • Continuously monitor server logs for abnormal execution or suspicious payloads that may indicate exploitation attempts.

Generated by OpenCVE AI on August 13, 2026 at 03:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Lllyasviel
Lllyasviel fooocus
Vendors & Products Lllyasviel
Lllyasviel fooocus
Type Values Removed Values Added
Weaknesses CWE-434
Type Values Removed Values Added
Weaknesses CWE-95
Type Values Removed Values Added
Description Fooocus is an image generating software. In versions 2.5.5 and prior, the Fooocus web UI is vulnerable to remote code execution due to the unsafe use of eval when processing metadata JSON. An attacker with access to the Fooocus web UI may be able to execute arbitrary code on the instance. As of time of publication, no known patched versions are available, but a suggested fix pull request is available.
Title Fooocus webui vulnerable to Remote Code Execution
Weaknesses CWE-434
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 17, 2026, 3:40 PM
Reserved
Mar 26, 2025, 3:04 PM
Status
Deferred
Published
Aug 11, 2026, 4:17 PM
Modified
Sep 29, 2026, 11:10 AM