GHSA-f8xq-q7px-wg8c
Vulnerability from github
Published
2022-03-18 23:11
Modified
2022-03-18 23:11
Summary
Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging
Details

Impact

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.

Patches

The problem has been patched as of 2.8.11, which escapes the data saved to the csv with single quotes.

Workarounds

If you are using an older version of gradio, don't open csv files generated by gradio with Excel or similar spreadsheet programs.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "gradio"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.8.11"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2022-24770"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-1236"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2022-03-18T23:11:43Z",
    "nvd_published_at": "2022-03-17T21:15:00Z",
    "severity": "HIGH"
  },
  "details": "### Impact\nThe `gradio` library has a flagging functionality which saves input/output data into a CSV file on the developer\u0027s 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\u0027s computer.\n\n### Patches\nThe problem has been patched as of `2.8.11`, which escapes the data saved to the csv with single quotes.\n\n### Workarounds\nIf you are using an older version of `gradio`, don\u0027t open csv files generated by `gradio` with Excel or similar spreadsheet programs.\n\n",
  "id": "GHSA-f8xq-q7px-wg8c",
  "modified": "2022-03-18T23:11:43Z",
  "published": "2022-03-18T23:11:43Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/gradio-app/gradio/security/advisories/GHSA-f8xq-q7px-wg8c"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-24770"
    },
    {
      "type": "WEB",
      "url": "https://github.com/gradio-app/gradio/pull/817"
    },
    {
      "type": "WEB",
      "url": "https://github.com/gradio-app/gradio/commit/80fea89117358ee105973453fdc402398ae20239"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/gradio-app/gradio"
    },
    {
      "type": "WEB",
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2022-229.yaml"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.