Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · Gradio

CVE-2022-24770: Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging

highCVSS 3.1 8.8GHSA-f8xq-q7px-wg8c

Impact 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.

Published Mar 18, 2022 · Updated Jan 27, 2023

Affected packages

gradio

Ecosystem
PyPI
Affected
< 2.8.11
Fixed in
2.8.11
Check
pip show gradio

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

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.

Patches

The problem has been patched as of 2.8.11, which escapes the data saved to the csv with single quotes.

Workarounds

If you are using an older version of gradio, don't open csv files generated by gradio with Excel or similar spreadsheet programs.

Credited to haby0.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Gradio vulnerabilities

All Gradio entries