CVE-2024-1561
April 16, 2024
An issue was discovered in gradio-app/gradio, where the "/component_server" endpoint improperly allows the invocation of any method on a "Component" class with attacker-controlled arguments. Specifically, by exploiting the "move_resource_to_block_cache()" method of the "Block" class, an attacker can copy any file on the filesystem to a temporary directory and subsequently retrieve it. This vulnerability enables unauthorized local file read access, posing a significant risk especially when the application is exposed to the internet via "launch(share=True)", thereby allowing remote attackers to read files on the host machine. Furthermore, gradio apps hosted on "huggingface.co" are also affected, potentially leading to the exposure of sensitive information such as API keys and credentials stored in environment variables.
Affected Packages
gradio (PYTHON):
Affected version(s) >=0.1.0 <4.13.0Fix Suggestion:
Update to version 4.13.0Additional Notes
The description of this vulnerability differs from MITRE.
Related ResourcesĀ (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Path Traversal: '..filename'
EPSS
Base Score:
93.50