CVE-2022-24770 json
Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging
published 2022-03-17 4 y ago modified 2026-06-17 4 mo ago also GHSA-f8xq-q7px-wg8c , PYSEC-2022-229 , EUVD-2022-0115
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
Summary
`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.
Patch / fix
- pypi gradio 2.8.11
- gradio_project gradio 2.8.11
- github.com/gradio-app/gradio@80fea89 commit
- github.com/gradio-app/gradio#817 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.30% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | gradio | <2.8.11 |
2.8.11 |
Affected products
- gradio-app gradio
Classification
- Weakness
-
- CWE-1236 Improper Neutralization of Formula Elements in a CSV File
References
-
github.com
/gradio-app/gradio/pull/817
web, patch, third-party-advisory
-
github.com
/gradio-app/gradio/commit/80fea89117358ee105973453fdc402398ae20239
web, patch, third-party-advisory
-
github.com
/gradio-app/gradio/security/advisories/GHSA-f8xq-q7px-wg8c
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24770
advisory
-
github.com
/gradio-app/gradio
package
-
github.com
/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2022-229.yaml
web
Sources
- CVE List CVE-2022-24770
- GitHub Advisory GHSA-f8xq-q7px-wg8c
- NVD CVE-2022-24770
- OSV PYSEC-2022-229
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.