---
id: CVE-2025-31114
title: Fooocus is an image generating software
summary: >-
  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 ma…
severity: none
cwe:
  - CWE-95
published: '2026-08-11'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:46:02.457'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-31114'
references:
  - url: 'https://github.com/lllyasviel/Fooocus/issues/3552'
    label: security-advisories@github.com
  - url: 'https://github.com/lllyasviel/Fooocus/pull/4207'
    label: security-advisories@github.com
  - url: 'https://securitylab.github.com/advisories/GHSL-2024-196_Fooocus/'
    label: security-advisories@github.com
  - url: 'https://securitylab.github.com/advisories/GHSL-2024-196_Fooocus/'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00668
epssPercentile: 0.4979
ingestedAt: '2026-09-09T21:22:45.527Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
