Skip to main content
EPSS 0.7%top 50%

CVE-2025-31114: CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in lllyasviel Fooocus

0
Critical
VulnerabilityCVE-2025-31114cvecve-2025-31114cwe-434cwe-95gcve
Published: 08/11/2026 (08/11/2026, 15:37:33 UTC)
Source: CVE Database V5
Vendor/Project: lllyasviel
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

lllyasviel

Fooocus

Affected versions
<=2.5.5
GitHub Actionsmore threats →ai
lllyasviel/Fooocus
pkg:github/lllyasviel/Fooocus
Affected versions
<=2.5.5

Run 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

AILast updated: 08/11/2026, 15:56:18 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses