CVE-2025-31114: CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in lllyasviel Fooocus
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.
AI Analysis
Technical Summary
CVE-2025-31114 affects Fooocus versions 2.5.5 and prior. The vulnerability arises from the unsafe use of the eval function when processing metadata JSON in the Fooocus web UI, enabling remote code execution by an attacker with UI access. The CVSS 4.0 score is 9.3, indicating critical severity with network attack vector, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability. No official remediation or patch has been released yet, though a community suggested fix pull request is available.
Potential Impact
An attacker who can access the Fooocus web UI may execute arbitrary code on the system running Fooocus, potentially leading to full system compromise. This impacts confidentiality, integrity, and availability of the affected system. The vulnerability is critical given the ease of exploitation and the severity of impact.
Mitigation Recommendations
No official patch or remediation is currently available. Users should monitor the vendor's repository or project for official fixes. Applying the suggested fix pull request from the community may mitigate the issue but should be tested carefully. Restricting access to the Fooocus web UI to trusted users only can reduce exposure until a patch is released.
CVE-2025-31114: CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in lllyasviel Fooocus
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.
CVSS v4.0
Score 9.3critical
Affected software
lllyasviel
Fooocus
pkg:github/lllyasviel/FooocusRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-31114 affects Fooocus versions 2.5.5 and prior. The vulnerability arises from the unsafe use of the eval function when processing metadata JSON in the Fooocus web UI, enabling remote code execution by an attacker with UI access. The CVSS 4.0 score is 9.3, indicating critical severity with network attack vector, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability. No official remediation or patch has been released yet, though a community suggested fix pull request is available.
Potential Impact
An attacker who can access the Fooocus web UI may execute arbitrary code on the system running Fooocus, potentially leading to full system compromise. This impacts confidentiality, integrity, and availability of the affected system. The vulnerability is critical given the ease of exploitation and the severity of impact.
Mitigation Recommendations
No official patch or remediation is currently available. Users should monitor the vendor's repository or project for official fixes. Applying the suggested fix pull request from the community may mitigate the issue but should be tested carefully. Restricting access to the Fooocus web UI to trusted users only can reduce exposure until a patch is released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-03-26T15:04:52.624Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a7b42cbbf8831d539f89e5a
Added to database: 08/11/2026, 15:42:03 UTC
Last enriched: 08/11/2026, 15:56:18 UTC
Last updated: 09/24/2026, 07:18:05 UTC
Views: 54
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.