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.
Published: 2026-08-11
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Thu, 13 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 13 Aug 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Lllyasviel
Lllyasviel fooocus
Vendors & Products Lllyasviel
Lllyasviel fooocus

Tue, 11 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-434

Tue, 11 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-95

Tue, 11 Aug 2026 15:45:00 +0000

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'}


Subscriptions

Lllyasviel Fooocus
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T15:40:33.338Z

Reserved: 2025-03-26T15:04:52.624Z

Link: CVE-2025-31114

cve-icon Vulnrichment

Updated: 2026-08-13T13:10:37.840Z

cve-icon NVD

Status : Received

Published: 2026-08-11T16:17:26.520

Modified: 2026-08-13T15:19:27.400

Link: CVE-2025-31114

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T09:54:16Z

Weaknesses
  • CWE-95

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