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 | Vendor | Product | Affected 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.
References
- https://github.com/gradio-app/gradio/pull/817 Patch
- https://nvd.nist.gov/vuln/detail/CVE-2022-24770 Vendor Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2022-229....
- https://github.com/advisories/GHSA-f8xq-q7px-wg8c
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24770... Vendor Advisory
- https://github.com/gradio-app/gradio/security/advisories/GHSA-f8xq-q7px-wg8c Vendor Advisory
- https://github.com/gradio-app/gradio/commit/80fea89117358ee105973453fdc402398ae2... Patch
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Type
CWE-1236Improper Neutralization of Formula Elements in a CSV File
Timeline
Published17 Mar 2022
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta