CVE-2025-31114: Fooocus webui vulnerable to Remote Code Execution
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.
Security readout for executives and security teams
Plain-English summary
Fooocus 2.5.5 and earlier can treat malicious metadata as executable code. Anyone able to reach the web interface may potentially take control of the hosting instance, affecting its data, integrity, and availability. The supplied sources identify no released patched version.
Executive priority
Prioritize immediately when an affected Fooocus interface is externally or broadly reachable. Isolate exposure now, assign ownership for monitoring vendor updates, and consider suspending the service where restrictions are inadequate. Internal, tightly restricted instances still require prompt remediation planning.
Technical view
CVE-2025-31114 is a CWE-95 code-injection flaw caused by unsafe eval use while processing metadata JSON. A network attacker with web UI access may execute arbitrary code on the Fooocus instance without privileges or user interaction. It carries CVSS 4.0 score 9.3.
Likely exposure
Fooocus deployments running version 2.5.5 or earlier are affected. Risk is greatest where the web UI is internet-accessible or reachable by untrusted users who can cause metadata JSON to be processed. The bundle provides no CPEs or deployment telemetry, so organizational prevalence is unknown.
Exploitation context
The CVE is not listed in CISA KEV, and the supplied sources do not establish active exploitation. Public disclosure and a proposed fix may help defenders understand the flaw, but they also increase awareness. Treat reachable affected instances as urgent despite the absence of confirmed exploitation evidence.
Researcher notes
The key sink is unsafe eval during metadata JSON processing, classified as CWE-95. Successful exploitation may execute code in the Fooocus process context. The CVSS 4.0 vector indicates network reachability, low complexity, no privileges, and no interaction. Available evidence names a proposed fix but no patched release or confirmed in-the-wild exploitation.
Mitigation direction
Restrict Fooocus web UI access to trusted users and approved network paths.
Remove internet exposure or disable affected instances when access cannot be adequately restricted.
Monitor the project for a released, vendor-supported patched version.
Evaluate the suggested fix pull request cautiously; it is not identified as a released patch.
Apply the vendor-supported update when available and retest access controls.
Validation and detection
Inventory Fooocus instances and confirm their installed versions.
Identify instances running version 2.5.5 or earlier.
Verify whether each web UI is internet-accessible or reachable by untrusted networks.
Review access and application logs for unexpected metadata processing or process activity.
Confirm network restrictions prevent unauthorized users from reaching the interface.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-95: Code execution behavior lookup
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
4Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: yesTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-95 · source CWE mapping
Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.