SEVERITY AND EXPLOITATION CONTEXT

CVE-2024-47164: The `is_in_or_equal` function may be bypassed in Gradio

Review published vectors, EPSS probability and CISA KEV status independently.

Lookup reads saved CVE and CISA snapshots from this site and requests EPSS from FIRST. The CVE source is contacted when a saved record is unavailable or you request a refresh. External providers receive your IP address. Finding notes and saved assessments are not sent by this feature.

The `is_in_or_equal` function may be bypassed in Gradio

Gradio is an open-source Python package designed for quick prototyping. This vulnerability relates to the **bypass of directory traversal checks** within the `is_in_or_equal` function. This function, intended to check if a file resides within a given directory, can be bypassed with certain payloads that manipulate file paths using `..` (parent directory) sequences. Attackers could potentially access restricted files if they are able to exploit this flaw, although the difficulty is high. This primarily impacts users relying on Gradio’s blocklist or directory access validation, particularly when handling file uploads. Users are advised to upgrade to `gradio>=5.0` to address this issue. As a workaround, users can manually sanitize and normalize file paths in their Gradio deployment before passing them to the `is_in_or_equal` function. Ensuring that all file paths are properly resolved and absolute can help mitigate the bypass vulnerabilities caused by the improper handling of `..` sequences or malformed paths.

Published CVE snapshot: 2026-10-22. Record last updated: 2024-10-11T15:24:48.863Z. The live panels refresh separately; this snapshot remains available if a source cannot be reached.

View the CVE Program source record

GitHub_M · CVSS 4.0: 2.3 Low

Calculated from the published vector. Base score: 2.3. Provider-reported Base score: 2.3.

Vector and metric explanationsCVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
MetricValueMeaning
Attack vector (AV)NReachable across a network boundary, including internet or routed network paths.
Attack complexity (AC)HExploitation depends on overcoming a specific security-enhancing condition, such as defeating a mitigation.
Attack requirements (AT)PA specific deployment or execution condition is necessary, such as winning a race or gaining an on-path position.
Privileges required (PR)LThe attacker needs basic user capabilities before exploitation.
User interaction (UI)NNo other user must participate for exploitation to succeed.
Confidentiality (VC)LSome information is disclosed, with limited scope or seriousness of the direct consequence.
Integrity (VI)NNo integrity impact is demonstrated.
Availability (VA)NNo availability impact is demonstrated.
Confidentiality (SC)NNo impact to this property is established in a subsequent system.
Integrity (SI)NNo impact to this property is established in a subsequent system.
Availability (SA)NNo impact to this property is established in a subsequent system.

These definitions explain provider selections; they do not independently verify exploitation.

Review vector in calculator

Affected products reported by the provider

  • gradio-app · gradio

Consult the advisory for affected version ranges, configurations and remediation. A product listing alone does not establish that your installation is vulnerable.

Source references (1)

Interpret severity and exploitation separately

CVSS measures technical severity. EPSS estimates exploitation probability over the next 30 days. CISA KEV lists known exploited vulnerabilities. A missing EPSS result is not zero probability, and absence from KEV does not prove no exploitation. Review your deployment and retain the version, vector and evidence when documenting a finding.

Browse CVEs from 2024 · All published CVEs · Calculation methodology