Skip to content
HighVulnerability

CVE-2022-24770: gradio CSV injection in flagged output files

Identifier
CVE-2022-24770
Published
Record updated
View JSON
Affected
  • gradio < 2.8.11
Fixed in
2.8.11
  • released March 17, 2022, on the day of disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.3%

Summary

Prior to version 2.8.11, the `gradio` library's flagging feature saves input and output data into a CSV file on the developer's computer without neutralizing formula elements. A user can therefore store arbitrary text such as commands in that file, and when a spreadsheet program like MS Excel opens it, those commands run automatically on the developer's machine.

Mitigation

Fixed in 2.8.11, which escapes the saved CSV with single quotes. Workaround: avoid opening CSV files generated by `gradio` with Excel or similar spreadsheet programs.