Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEmbed malicious Python payload in image EXIF styles field
-
DeliveryUpload crafted image to reachable Fooocus instance
-
Exploitmeta_parser.py get_list() calls eval() on payload
-
ExecutionArbitrary Python executes in server process
-
ImpactFull 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-69416
GHSA-vc7w-gqjp-xxrh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB