NVD Vulnerability Detail
Search Exploit, PoC
CVE-2024-47164
Summary

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.

Publication Date Oct. 11, 2024, 7:15 a.m.
Registration Date Oct. 11, 2024, noon
Last Update Oct. 18, 2024, 1:40 a.m.
CVSS3.1 : MEDIUM
スコア 6.5
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C)
完全性への影響(I)
可用性への影響(A) なし
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* 5.0.0
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
Gradio project の Python 用 Gradio におけるパストラバーサルの脆弱性
Title Gradio project の Python 用 Gradio におけるパストラバーサルの脆弱性
Summary

Gradio project の Python 用 Gradio には、パストラバーサルの脆弱性が存在します。

Possible impacts 情報を取得される、および情報を改ざんされる可能性があります。
Solution

参考情報を参照して適切な対策を実施してください。

Publication Date Oct. 10, 2024, midnight
Registration Date Oct. 18, 2024, 12:31 p.m.
Last Update Oct. 18, 2024, 12:31 p.m.
Affected System
Gradio project
Gradio 5.0.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2024年10月18日]
  掲載
Oct. 18, 2024, 12:31 p.m.