Patchfirst
CVE-2024-1561 Public exploit High · 7.5 EPSS 9.3%

Arbitrary Local File Read via Component Method Invocation in gradio-app/gradio

gradio-app · gradio-app/gradio

Official description · CVE.org

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.

Breakdown
64.3 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 5 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 25 days after disclosure.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+25 days
  3. First seen exploitedVulnCheck KEV evidence+5 mo

7 fixes in gradio over 4 months. The latest fix listed for gradio is 4.19.2.

Fixes in gradioPyPI package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 4.9.0CVE-2024-09645 Feb 2024
  2. 4.10.0CVE-2024-118316 Apr 2024
  3. 4.11.0CVE-2023-5144922 Dec 2023
  4. 4.13.0CVE-2024-156116 Apr 2024
  5. 4.14.0CVE-2023-657214 Dec 2023
  6. 4.18.0CVE-2024-220627 Mar 2024
  7. 4.19.2CVE-2024-172721 Mar 2024Latest listed

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: gradio.

Upgrade to 4.19.2

Fixes this CVE and 1 other known vulnerability in this package (CVE-2024-1728).

Still affected on this line by CVE-2024-4325 (no fix published); CVE-2024-47167 (fixed in 5.0.0, a newer line); CVE-2026-28414 (fixed in 6.7.0, a newer line).

pippip install "gradio>=4.19.2"

First fixed in 4.13.0 for CVE-2024-1561.

Affected versions

If you runUpgrade to
All versions before 4.13.04.19.2first fix for this CVE: 4.13.0

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close