HighVulnerability
CVE-2024-4941: Gradio JSON component local file inclusion via postprocess
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2024-4941
- Published
- Record updated
- Affected
- gradio < 4.31.3
- Fixed in
- 4.31.3
- released May 15, 2024, 22 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.8%
Summary
CVE-2024-4941 is a local file inclusion flaw in the JSON component of gradio-app/gradio version 4.25. The postprocess() function in gradio/components/json_component.py parses a user-controlled string as JSON, and if the object contains a path key, processing_utils.move_files_to_cache() copies the named file to a temporary directory. An attacker can then retrieve that file through the /file=.. endpoint, reading files on the remote system.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- gradioPyPILLM dependency since 2023-03-14 · 11 tracked dependents
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online