---
id: CVE-2026-51974
title: >-
  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 o…
summary: >-
  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 o…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
published: '2026-09-01'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T19:42:20.313'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-51974'
references:
  - url: 'https://github.com/lllyasviel/Fooocus/blob/main/modules/meta_parser.py#L89'
    label: cve@mitre.org
  - url: 'https://github.com/lllyasviel/Fooocus/issues/4115'
    label: cve@mitre.org
  - url: 'https://mrbruh.com/fooocus/'
    label: cve@mitre.org
  - url: 'https://github.com/lllyasviel/Fooocus/issues/4115'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00774
epssPercentile: 0.53863
ingestedAt: '2026-09-08T20:10:03.160Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
