Skip to content
Heist/ feed
Back to feed
Critical

Fooocus webui vulnerable to Remote Code Execution

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-31114
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 13:08 UTC · Revision 1

Source evidence

Fooocus webui vulnerable to Remote Code Execution

core-osv · Original source

Published 11 Aug 2026, 15:37 UTC

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.

osv:CVE-2025-31114
Complete source record
{
  "id": "c6dd7ba589196b3f019d477686e746f44a92fa8d504d05ddf4a529f01cc20df2",
  "url": "https://osv.dev/vulnerability/CVE-2025-31114",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Fooocus webui vulnerable to Remote Code Execution",
    "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 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.",
    "evidence": "osv:CVE-2025-31114",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-31114",
      "aliases": [
        "CVE-2025-31114"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/lllyasviel/fooocus",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "8da1d3ff68942e2d976675939fe72c95746e366e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.5.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.5.5"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.5.5",
            "v2.5.3",
            "v2.5.2",
            "v2.5.1",
            "v2.5.0",
            "v2.4.3",
            "v2.4.2",
            "v2.4.1",
            "v2.4.0",
            "2.3.1",
            "2.3.0",
            "2.2.1",
            "2.2.0",
            "2.1.865",
            "2.1.864",
            "1.0.35",
            "release"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-31114.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.048234537Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31114.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-31114",
        "https://securitylab.github.com/advisories/GHSL-2024-196_Fooocus/",
        "https://github.com/lllyasviel/Fooocus/issues/3552",
        "https://github.com/lllyasviel/Fooocus/pull/4207"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-95"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31114.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-31114",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 495683,
  "published_at": "2026-08-11T15:37:33.789+00:00"
}