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-124588: huggingface finetrainers code injection via Library argumentSimilar attack · NVD/CVE Database
- MediumTaiwan-Based Hacker Used BOSSAI AI Agents to Steal Taipei Emergency Dispatch RecordsSimilar attack · The Hacker News
- HighCVE-2026-97677: IBM Langflow OSS arbitrary file write and read by authenticated flow authorsSimilar attack · NVD/CVE Database
- MediumRecent AI agent experiments reveal a risky future of machine 'teamwork' inside corporationsSimilar attack · CNBC Technology
- MediumClaude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHubSimilar attack · The Hacker News