CVE-2026-51974 Code injection in n/a

High 8.8 Published Updated

Remote attackers can execute arbitrary Python code by uploading an image with crafted EXIF metadata, affecting Fooocus users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-51974?

CVE-2026-51974 is a high-severity code injection vulnerability in n/a, published on 1 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-94

Which versions are affected by CVE-2026-51974?

How do I fix CVE-2026-51974?

No fix has been published for CVE-2026-51974 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-51974 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-51974 exists.

Sources

Also known as GHSA-vc7w-gqjp-xxrh.

Is CVE-2026-51974 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free