{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2025-31114",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2025-03-26T15:04:52.624Z",
        "datePublished": "2026-08-11T15:37:33.789Z",
        "dateUpdated": "2026-08-17T15:40:33.338Z"
    },
    "containers": {
        "cna": {
            "title": "Fooocus webui vulnerable to Remote Code Execution",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-95",
                            "lang": "en",
                            "description": "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "HIGH",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 9.3,
                        "baseSeverity": "CRITICAL",
                        "vectorString": "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",
                        "version": "4.0"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://securitylab.github.com/advisories/GHSL-2024-196_Fooocus/",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://securitylab.github.com/advisories/GHSL-2024-196_Fooocus/"
                },
                {
                    "name": "https://github.com/lllyasviel/Fooocus/issues/3552",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/lllyasviel/Fooocus/issues/3552"
                },
                {
                    "name": "https://github.com/lllyasviel/Fooocus/pull/4207",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/lllyasviel/Fooocus/pull/4207"
                }
            ],
            "affected": [
                {
                    "vendor": "lllyasviel",
                    "product": "Fooocus",
                    "versions": [
                        {
                            "version": "<= 2.5.5",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-08-17T15:40:33.338Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-g3fj-jjc6-qj8h",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "references": [
                    {
                        "url": "https://securitylab.github.com/advisories/GHSL-2024-196_Fooocus/",
                        "tags": [
                            "exploit"
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-08-13T13:10:26.087584Z",
                                "id": "CVE-2025-31114",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-08-13T14:08:09.158Z"
                }
            }
        ]
    }
}