CVE-2022-24770
HIGH 8.8CVSS 3.1Improper 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.
- Published
- 17 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1236
- Also known as
- GHSA-f8xq-q7px-wg8cPYSEC-2022-229
- Sources
- NVDJSONOSV GHSA-f8xq-q7px-wg8cJSONOSV PYSEC-2022-229JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gradio_project | gradiocpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* |
< 2.8.11 | 2.8.11 |
| OSV | PyPI | gradio | < 2.8.11 | 2.8.11 |
References
- https://github.com/gradio-app/gradio/commit/80fea89117358ee105973453fdc402398ae20239 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/gradio-app/gradio/pull/817 · Patch, Third Party Advisory, WEB
- https://github.com/gradio-app/gradio/security/advisories/GHSA-f8xq-q7px-wg8c · Third Party Advisory, WEB, ADVISORY
- 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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 17 Mar 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Mar 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Mar 2022)