CVE-2025-31114 Fooocus webui vulnerable to Remote Code Execution
Attackers with web UI access can execute arbitrary code via unsafe eval in metadata processing, requiring immediate attention from Fooocus users.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-31114?
CVE-2025-31114 is a critical code injection vulnerability in lllyasviel Fooocus, published on 11 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Fooocus is an image generating software. In versions 2.5.5 and prior, the Fooocus web UI is vulnerable to remote code execution due to the unsafe use of eval when processing metadata JSON. An attacker with access to the Fooocus web UI may be able to execute arbitrary code on the instance. As of time of publication, no known patched versions are available, but a suggested fix pull request is available.
Weakness: CWE-95
Which versions are affected by CVE-2025-31114?
How do I fix CVE-2025-31114?
No fix has been published for CVE-2025-31114 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-2025-31114 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-31114 exists.