{"id":"CVE-2022-24770","published":"2022-03-17T20:30:19Z","modified":"2025-04-23T18:46:31Z","title":"Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging","vendor":"gradio-app","product":"gradio","tier":"tail","description":{"text":"`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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01298,"percentile":0.7112,"provenance":"source"},"cwes":[{"id":"CWE-1236","name":"Improper Neutralization of Formula Elements in a CSV File"}],"references":[{"url":"https://github.com/gradio-app/gradio/security/advisories/GHSA-f8xq-q7px-wg8c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gradio-app/gradio/pull/817","tags":["x_refsource_MISC"]},{"url":"https://github.com/gradio-app/gradio/commit/80fea89117358ee105973453fdc402398ae20239","tags":["x_refsource_MISC"]}],"priority":{"score":20.4,"factors":[{"name":"EPSS percentile","points":14.22},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"gradio-app","affectedVersions":[{"vendor":"gradio-app","product":"gradio","versions":["< 2.8.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:55:02.672639Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gradio","vulnerableRanges":["<2.8.11"],"patched":["2.8.11"],"from":["GHSA-f8xq-q7px-wg8c","PYSEC-2022-229"],"provenance":"source"}],"summary":{"text":"The flaw is in the flagging feature of Gradio, an open source framework for building machine learning demos, where input and output data saved to a CSV file on the developer's computer is not neutralised against spreadsheet formula elements. An attacker can exploit this by entering crafted text that a spreadsheet program such as MS Excel will execute as commands when the file is opened, which requires that an attacker be able to submit data to a flagged demo and that a user then open the generated CSV in such a program.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:57Z"},"euvd":{"id":"EUVD-2022-0115","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-43831","published":"2021-12-15","fixed":"2.5.0","kev":false,"link":{"from":"CVE-2021-43831","to":"CVE-2022-24770","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:gradio","fromFixed":"2.5.0","toFixed":"2.8.11","daysApart":92}]}},{"cve":"CVE-2022-24770","published":"2022-03-17","fixed":"2.8.11","kev":false},{"cve":"CVE-2023-25823","published":"2023-02-23","fixed":"3.13.1","kev":false},{"cve":"CVE-2023-34239","published":"2023-06-07","fixed":"3.34.0","kev":false},{"cve":"CVE-2024-0964","published":"2024-02-05","fixed":"4.9.0","kev":false}],"package":"PyPI:gradio"}}