9.3
CRITICAL CVSS 4.0
CVE-2025-31114
Fooocus webui vulnerable to Remote Code Execution
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.

INFO

Published Date :

Aug. 11, 2026, 4:17 p.m.

Last Modified :

Sept. 29, 2026, 11:10 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2025-31114 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Lllyasviel fooocus
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 4.0 CRITICAL [email protected]
Solution
Address RCE via unsafe eval by applying the suggested pull request.
  • Apply the suggested pull request to fix the eval vulnerability.
  • Monitor for official patches from the vendor.
  • Restrict access to the Fooocus web UI.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-31114.

URL Resource
https://github.com/lllyasviel/Fooocus/issues/3552
https://github.com/lllyasviel/Fooocus/pull/4207
https://securitylab.github.com/advisories/GHSL-2024-196_Fooocus/
https://securitylab.github.com/advisories/GHSL-2024-196_Fooocus/
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-31114 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-31114 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-31114 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-31114 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Sep. 29, 2026

    Action Type Old Value New Value
    Added Translation Title: Fooocus de lllyasviel, Description: Fooocus es un software generador de imágenes. En las versiones 2.5.5 y anteriores, la interfaz de usuario web de Fooocus es vulnerable a la ejecución remota de código debido al uso inseguro de eval al procesar metadatos JSON. Un atacante con acceso a la interfaz de usuario web de Fooocus podría ser capaz de ejecutar código arbitrario en la instancia. Hasta el momento de la publicación, no hay versiones parcheadas conocidas disponibles, pero hay una solicitud de extracción con una solución sugerida disponible.
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Aug. 13, 2026

    Action Type Old Value New Value
    Added Reference https://securitylab.github.com/advisories/GHSL-2024-196_Fooocus/
    Added SSVC {'id': 'CVE-2025-31114', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'yes'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-08-13T13:10:26.087584Z'}
  • CVE Modified by [email protected]

    Aug. 11, 2026

    Action Type Old Value New Value
    Added CWE CWE-95
    Removed CWE CWE-434
  • New CVE Received by [email protected]

    Aug. 11, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'lllyasviel', 'product': 'Fooocus', 'versions': [{'status': 'affected', 'version': '<= 2.5.5'}]}]
    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.
    Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-434
    Added Reference https://github.com/lllyasviel/Fooocus/issues/3552
    Added Reference https://github.com/lllyasviel/Fooocus/pull/4207
    Added Reference https://securitylab.github.com/advisories/GHSL-2024-196_Fooocus/
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.