Skip to main content

Fooocus EUVDEUVD-2026-69416

| CVE-2026-51974 HIGH
Code Injection (CWE-94)
2026-09-01 mitre GHSA-vc7w-gqjp-xxrh
8.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Embed malicious Python payload in image EXIF styles field
  2. Delivery
    Upload crafted image to reachable Fooocus instance
  3. Exploit
    meta_parser.py get_list() calls eval() on payload
  4. Execution
    Arbitrary Python executes in server process
  5. Impact
    Full host compromise with server process privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must be able to reach the Fooocus Gradio web interface and submit an image for processing - the upload or analysis workflow that triggers meta_parser.py's get_list function must be reachable. In default Fooocus deployments there is no mandatory authentication, meaning any network-reachable instance is exploitable without credentials. If Gradio authentication has been explicitly configured (--gradio-auth), valid credentials are required, raising the bar to low-privileged authenticated access. The image must contain a styles field in its EXIF metadata that the parser processes; this is a normal metadata field easily embedded with standard tools such as ExifTool. There is no requirement for any specific OS, GPU, or non-default model configuration - the parser runs regardless of the active Stable Diffusion model. Exploitation is limited to instances actually reachable by the attacker; local-only deployments (127.0.0.1 binding, no --share) are not remotely exploitable.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H scores 8.8 and captures most of the risk correctly - low attack complexity and full impact triad - though PR:L may be generous: many Fooocus deployments lack authentication, making PR:N more realistic for typical self-hosted instances. Even a mid-sized municipal IT team in leszno running Fooocus to support creative workflows would face full server compromise if the tool is exposed on any internal or external network segment. The EPSS of 0.24% at the 15th percentile suggests exploitation has not yet been widespread, but the combination of a public detailed writeup (mrbruh.com/fooocus), visible vulnerable source code on GitHub, and trivial attack mechanics (embed payload in any JPEG EXIF field, upload it) means the barrier to weaponization is very low. No CISA KEV listing is present, but the short path from the writeup to a working script makes this a credible near-term exploitation risk for any internet-exposed instance.

Exploit ScenarioDerived

An attacker identifies a publicly accessible or network-reachable Fooocus instance, crafts a JPEG image embedding a malicious Python expression (e.g., a reverse shell command) in the styles EXIF metadata field, and uploads it via the normal image-processing workflow. The get_list function in meta_parser.py calls eval() on the extracted styles value, executing the attacker's code in the Python interpreter running the Fooocus server process, yielding full host access with the privileges of that process. A detailed technical writeup describing this class of attack is publicly accessible, significantly lowering exploitation effort.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 02, 2026

Remote code execution in lllyasviel Fooocus 2.1.854 through 2.5.5 allows any user who can upload an image to execute arbitrary Python code on the hosting server. The vulnerability stems from the get_list function in modules/meta_parser.py passing a styles field extracted from image EXIF metadata directly to Python's eval() without sanitization or sandboxing. A detailed technical writeup exists at mrbruh.com/fooocus and the vulnerable code path is publicly visible in the repository; no confirmed active exploitation has been identified at time of analysis, and EPSS stands at 0.24% (15th percentile).

RemediationAI

The primary remediation is to upgrade Fooocus to a version beyond 2.5.5 that addresses this eval() injection; however, no specific patched release version is confirmed from the available references, so operators should monitor the upstream GitHub repository and the issue at github.com/lllyasviel/Fooocus/issues/4115 for a fix commit or tagged release. Until a patched version is deployed, the highest-priority compensating control is to restrict network access to the Fooocus web interface to trusted hosts only, using firewall rules or a reverse proxy with IP allowlisting, since the attack requires reaching the image-upload endpoint. As an additional control, enabling authentication via Gradio's --gradio-auth flag (username:password) raises the bar from PR:N to PR:L. Disabling image metadata ingestion or patching modules/meta_parser.py to replace eval() with a safe parser (e.g., ast.literal_eval() or explicit string splitting) would eliminate the root cause but requires source-level modification. Note that ast.literal_eval() itself only evaluates literals and would break any non-literal styles expression, so functional testing is necessary after that change.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Fooocus is a Stable Diffusion-based AI image generation front-end built on Gradio and Python, maintained by lllyasviel. The affected code is in modules/meta_parser.py at approximately line 89, where the get_list function processes EXIF metadata embedded in uploaded images. Rather than parsing the styles field as a string or structured data type, the function invokes Python's built-in eval() on the raw field value, a classic CWE-94 (Improper Control of Generation of Code) pattern. Because eval() executes arbitrary Python expressions in the host interpreter's context, any attacker-controlled input reaching this call becomes code execution. The affected versions span 2.1.854 through 2.5.5, per the CVE description; CPE data is a placeholder (n/a:n/a) and does not aid version scoping. The application is typically self-hosted via Gradio's web interface, often without mandatory authentication in default configurations.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

Default Fooocus deployments have no mandatory authentication, making PR:N more accurate than the vendor-provided PR:L; all other metrics align with the description.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Sep 02, 2026 - 19:22 NVD
8.8 (HIGH)
CVE Published
Sep 01, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Sep 01, 2026 - 00:00 cve.org
HIGH 8.8

DescriptionCVE.org

An eval() injection vulnerability in the get_list function in modules/meta_parser.py in lllyasviel Fooocus 2.1.854 through 2.5.5 allows remote attackers to execute arbitrary Python code via a crafted styles payload in the EXIF metadata of an uploaded image file.

Executive ViewAI

Why It Matters

Fooocus image generation software (versions 2.1.854-2.5.5) contains a remote code execution vulnerability triggered through unsanitized EXIF metadata parsing, allowing users with image upload capability to execute arbitrary Python code directly on the server. With technical documentation and exploit guidance publicly available online and no vendor patch currently issued, organizations using Fooocus face persistent risk of complete server compromise.

Business Impact: High
Compensating Controls

Disable image upload functionality or restrict to pre-authorized users only; strip and validate EXIF metadata before image processing; run Fooocus with minimal system privileges (no root/administrator); implement network segmentation to prevent lateral movement if the service is compromised; deploy Web Application Firewall rules to detect malicious EXIF payloads; enable comprehensive logging and monitoring of the service and process execution; maintain isolated backups separate from production systems; consider containerization with restricted filesystem and network access.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Medium
popular self-hosted AI image generation tool among hobbyists and researchers
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy