Advisory

PYSEC-2025-119

Also known as: CVE-2025-48889, GHSA-8jw3-6x8j-v96g

Summary

The record has no summary.

Details

Gradio is an open-source Python package that allows quick building of demos and web application for machine learning models, API, or any arbitrary Python function. Prior to version 5.31.0, an arbitrary file copy vulnerability in Gradio's flagging feature allows unauthenticated attackers to copy any readable file from the server's filesystem. While attackers can't read these copied files, they can cause DoS by copying large files (like /dev/urandom) to fill disk space. This issue has been patched in version 5.31.0.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2025-05-30 06:15 UTC
Modified
2026-05-20 09:19 UTC

Affected packages and fixes

gradio

PyPI · All systems

Affected

  • introduced 5.25.2, fixed 5.31.0 (ecosystem)

Fixed versions

5.31.0

Fix

  • Fixed version 5.31.0
    pip install --upgrade gradio==5.31.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences