CVE-2026-51974

Published Sep 1, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A single eval() call in the get_list function of Fooocus’s meta_parser module allows an attacker to inject arbitrary Python code through a crafted styles payload in the EXIF metadata of an uploaded image. When the function processes the metadata, the injected code is executed with the privileges of the running application, compromising confidentiality, integrity, and availability of the host system. The vulnerability enables full control over the server without needing additional credentials.

Affected Systems

Fooocus versions 2.1.854 through 2.5.5 are affected. The flaw lies in modules/meta_parser.py and can be triggered by any image that contains a malicious styles field in its EXIF metadata. No other vendors or products are listed; the impact is confined to installations of these specific Fooocus releases.

Risk and Exploitability

The vulnerability is a classic code‑execution flaw (CWE‑94) and is capable of being exploited remotely by any user that can upload an image. Although the EPSS score is less than 1% and the issue is not listed in CISA’s KEV catalog, the remote nature of the attack and the lack of network requirements make it highly attractive to adversaries. The CVSS score of 8.8 indicates high severity. Without a patch, attackers can spread the vulnerability simply by hosting or sharing malicious image files with users of the vulnerable system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Fooocus to version 2.5.6 or later, which removes the eval() usage from get_list.
  • If an upgrade is not possible, modify or replace the get_list implementation so that it does not use eval() and performs safe parsing of the styles field.
  • Limit image uploads to trusted users and cleanse or remove EXIF metadata before processing.

Generated by OpenCVE AI on September 3, 2026 at 13:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Eval Injection via EXIF Styles Allows Remote Code Execution in Fooocus
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Lllyasviel
Lllyasviel fooocus
Vendors & Products Lllyasviel
Lllyasviel fooocus
Type Values Removed Values Added
Title Eval Injection via EXIF Styles Allows Remote Code Execution in Fooocus
Weaknesses CWE-94
Type Values Removed Values Added
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.
References
Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 2, 2026, 6:24 PM
Reserved
Jun 8, 2026, 12:00 AM
Status
Deferred
Published
Sep 1, 2026, 6:17 PM
Modified
Sep 8, 2026, 7:42 PM