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.
Published: 2026-09-01
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Thu, 03 Sep 2026 14:15:00 +0000

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

Wed, 02 Sep 2026 19:30:00 +0000

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'}


Wed, 02 Sep 2026 03:45:00 +0000

Type Values Removed Values Added
First Time appeared Lllyasviel
Lllyasviel fooocus
Vendors & Products Lllyasviel
Lllyasviel fooocus

Wed, 02 Sep 2026 02:45:00 +0000

Type Values Removed Values Added
Title Eval Injection via EXIF Styles Allows Remote Code Execution in Fooocus
Weaknesses CWE-94

Tue, 01 Sep 2026 22:00:00 +0000

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

Subscriptions

Lllyasviel Fooocus
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-02T18:24:46.913Z

Reserved: 2026-06-08T00:00:00.000Z

Link: CVE-2026-51974

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-09-01T18:17:43.117

Modified: 2026-09-08T19:42:20.313

Link: CVE-2026-51974

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T14:00:04Z

Weaknesses
  • CWE-94

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