CVE-2024-0964CWE-22

LFI in Gradio

High · published February 5, 2024

CVSS v3.0
7.5
EPSS
1%
Percentile
61.1
In the wild
Unconfirmed
What it is

⚡ A crafty user-supplied JSON payload can trigger a local file inclusion vulnerability in Gradio—like sneaking a delivery through a door that was accidentally left ajar! This vulnerability is like a delivery driver following a request to pick up a package without verifying the address. If the driver doesn't check where they're headed, they could end up delivering something sensitive to the wrong place. An attacker could exploit this flaw to include local files on the server, potentially exposing critical data or executing unauthorized actions. Imagine someone gaining access to sensitive configuration files or scripts, leading to a security breach that could compromise your entire setup.

Put simply

This vulnerability is like a delivery driver following a request to pick up a package without verifying the address. If the driver doesn't check where they're headed, they could end up delivering something sensitive to the wrong place. This local file inclusion vulnerability arises from a failure to properly sanitize user-supplied JSON values in API requests, allowing an attacker to control file paths and access sensitive files on the server.

What to do

An attacker could exploit this flaw to include local files on the server, potentially exposing critical data or executing unauthorized actions. Imagine someone gaining access to sensitive configuration files or scripts, leading to a security breach that could compromise your entire setup. To remediate this issue, update Gradio to the latest version that addresses this vulnerability. Additionally, ensure that all user inputs are properly validated and sanitized to prevent similar exploits in the future. You've got this! Follow these steps, and you'll be back to securing your setup in no time! 🛡️

The record
Technical detail
CVSS v3.0
7.5 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00959 · 61.1th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2024-02-05T22:53Z
EPSS history
Timeline
  • 05 FEB 22:53Z
    LFI in Gradio
    cvelistv5