CVE-2024-47871CWE-311

Insecure communication between the FRP client and server in Gradio

High · published October 10, 2024

CVSS v4.0
8.2
EPSS
0%
Percentile
6.8
In the wild
Unconfirmed
What it is

⚡ A sneaky flaw in Gradio's `share=True` option allows for insecure communication, making it painfully easy for attackers to intercept your shared demo data! 🔥 Think of it like sending a postcard instead of a sealed letter—everyone can read what’s written as it travels through the postal service! In this case, the connection between the Gradio client and server lacks the necessary encryption, leaving your data exposed during transfer. If you're sharing demos over the internet without HTTPS, attackers could easily intercept and read sensitive files uploaded to your Gradio server. Even worse, they could modify responses or data in transit, risking your project's integrity and security!

Put simply

Think of it like sending a postcard instead of a sealed letter—everyone can read what’s written as it travels through the postal service! In this case, the connection between the Gradio client and server lacks the necessary encryption, leaving your data exposed during transfer. This vulnerability in Gradio arises when the `share=True` option is used, allowing insecure communication between the Fast Reverse Proxy (FRP) client and server. Since HTTPS isn't enforced, anyone on the same network can eavesdrop on the communication.

What to do

If you're sharing demos over the internet without HTTPS, attackers could easily intercept and read sensitive files uploaded to your Gradio server. Even worse, they could modify responses or data in transit, risking your project's integrity and security! Upgrade to Gradio version 5 or higher immediately to ensure that all communications are secure. As a workaround, avoid using the `share=True` feature in production environments and host your Gradio apps on servers with HTTPS enabled to protect your data. You've got this! With these steps, you’ll be securing your Gradio demos in no time! 🛡️

The record
Technical detail
CVSS v4.0
8.2 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS
0.00176 · 6.8th percentile
Weakness
CWE-311 · Missing Encryption of Sensitive Data
Published
2024-10-10T22:14Z
EPSS history
Timeline
  • 10 OCT 22:14Z
    Insecure communication between the FRP client and server in Gradio
    cvelistv5