Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
8.8

CVE-2022-24770: Gradio CSV export can run commands in Excel

CVE-2022-24770 · published 4 years ago
Summary

Versions of Gradio before 2.8.11 let users place any text into the CSV files that the flagging feature creates. If someone opens those files with Microsoft Excel, the program may automatically execute hidden commands, potentially running unwanted code on the computer. Update Gradio to version 2.8.11 or later, or avoid opening the exported CSV files in Excel or similar spreadsheet tools.

What to do
  • Update abubakar abid gradio to version 2.8.11.
  • Update gradio_project gradio to version 2.8.11 or later.
Affected software
Ecosystem VendorProductAffected versions
pip abubakar abid gradio < 2.8.11
Fix: upgrade to 2.8.11
– gradio_project gradio < 2.8.11
cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*
Original advisory text
Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging
`gradio` is an open source framework for building interactive machine learning models and demos. Prior to version 2.8.11, `gradio` suffers from Improper Neutralization of Formula Elements in a CSV File. The `gradio` library has a flagging functionality which saves input/output data into a CSV file on the developer's computer. This can allow a user to save arbitrary text into the CSV file, such as commands. If a program like MS Excel opens such a file, then it automatically runs these commands, which could lead to arbitrary commands running on the user's computer. The problem has been patched as of `2.8.11`, which escapes the saved csv with single quotes. As a workaround, avoid opening csv files generated by `gradio` with Excel or similar spreadsheet programs.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
8.8 High
Exploitation
1% chance of attack within 30 days
Type
CWE-1236Improper Neutralization of Formula Elements in a CSV File
Timeline
Published17 Mar 2022
Updated4 Nov 2026
First seen6 Mar 2026
Sources
Track software like this
Free during beta