CVE-2026-51974
Received Received - Intake

Eval() Injection in Fooocus Image Processing

Vulnerability report for CVE-2026-51974, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-01

Last updated on: 2026-09-01

Assigner: MITRE

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-01
Last Modified
2026-09-01
Generated
2026-09-01
AI Q&A
2026-09-01
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
lllyasviel fooocus From 2.1.854 (inc) to 2.5.5 (inc)
lllyasviel fooocus 2.5.5

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a Remote Code Execution (RCE) vulnerability in Fooocus 2.1.854 through 2.5.5 caused by an unsafe eval() call in the get_list function of modules/meta_parser.py. Attackers can exploit it by injecting malicious Python code into the EXIF metadata of an uploaded image, specifically in the styles payload. When the image is processed, the injected code executes, allowing arbitrary Python code to run on the victim's system.

Detection Guidance

Check Fooocus logs for suspicious EXIF metadata processing or unexpected Python code execution. Inspect uploaded images for malformed styles fields in EXIF data using tools like exiftool or strings command. Monitor network traffic for outbound connections from Fooocus processes.

Impact Analysis

If you use Fooocus locally, especially in a Docker environment on Linux, an attacker could execute arbitrary commands on your system by tricking you into uploading a malicious image. This could lead to full system compromise, data theft, or further network infiltration without your knowledge.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating GDPR's data protection requirements and HIPAA's security rules for protected health information. Organizations using Fooocus may face compliance breaches, legal penalties, and reputational damage if exploited.

Mitigation Strategies

Disable Fooocus if possible or restrict network access to the application. Avoid uploading untrusted images. Update to a patched version if available. Use a sandboxed environment to limit potential damage from code execution.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-51974. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart