{"cve":"CVE-2022-24770","nvd":{"published":"2022-03-17T21:15:08.133","modified":"2026-06-17T04:32:28.877","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-1236"],"references":["https://github.com/gradio-app/gradio/commit/80fea89117358ee105973453fdc402398ae20239","https://github.com/gradio-app/gradio/pull/817","https://github.com/gradio-app/gradio/security/advisories/GHSA-f8xq-q7px-wg8c","https://github.com/gradio-app/gradio/commit/80fea89117358ee105973453fdc402398ae20239","https://github.com/gradio-app/gradio/pull/817"],"products":["gradio_project:gradio"],"source":"nvd","synced_at":"2026-10-19T21:29:06.454770966+00:00"},"epss":{"cve":"CVE-2022-24770","score":0.01298,"percentile":0.70409,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f8xq-q7px-wg8c","url":"https://osv.dev/vulnerability/GHSA-f8xq-q7px-wg8c","summary":"Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging","modified":"2023-11-08T04:08:35.736082Z","packages":[{"ecosystem":"PyPI","name":"gradio","purl":"pkg:pypi/gradio","ranges":["<2.8.11"],"fixed":["2.8.11"]}]},{"id":"PYSEC-2022-229","url":"https://osv.dev/vulnerability/PYSEC-2022-229","summary":"","modified":"2023-11-08T04:08:35.736082Z","packages":[{"ecosystem":"PyPI","name":"gradio","purl":"pkg:pypi/gradio","ranges":["<2.8.11"],"fixed":["2.8.11"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}