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

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.30%, higher than 71% of CVEs (2026-12-01)
- Published: 2022-03-17T20:30:19.000Z
- Modified: 2026-06-17T04:32:28.877Z
- Also known as: GHSA-f8xq-q7px-wg8c, PYSEC-2022-229
- Weaknesses: CWE-1236
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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

(As written by CVE List.)

## Affected

- gradio-app gradio: < 2.8.11
- gradio (PyPI): before 2.8.11; before 80fea89117358ee105973453fdc402398ae20239
- gradio_project gradio: before 2.8.11

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/gradio-app/gradio/security/advisories/GHSA-f8xq-q7px-wg8c> (advisory, third-party-advisory, web)
- <https://github.com/gradio-app/gradio/pull/817> (patch, third-party-advisory, web)
- <https://github.com/gradio-app/gradio/commit/80fea89117358ee105973453fdc402398ae20239> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24770> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2022-229.yaml> (web)

## Sources

- CVE List: [CVE-2022-24770](https://www.cve.org/CVERecord?id=CVE-2022-24770), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-f8xq-q7px-wg8c](https://github.com/advisories/GHSA-f8xq-q7px-wg8c), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-24770](https://nvd.nist.gov/vuln/detail/CVE-2022-24770), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-229](https://osv.dev/vulnerability/PYSEC-2022-229), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-24770 · Whole record: https://cve.day/CVE-2022-24770.json · Rebuilt by cve.day 2026-11-25T22:58:10.155Z
