logo

CVE-2022-39217 some-natalie/ghas-to-csv

Package

Manager: github_actions
Name: some-natalie/ghas-to-csv
Vulnerable Version: >=0 <1

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

EPSS: 0.00088 pctl0.26183

Details

ghas-to-csv vulnerable to Improper Neutralization of Formula Elements in a CSV File ### Impact This GitHub Action creates a CSV file without sanitizing the output of the APIs. If an alert is dismissed or any other custom field contains executable code / formulas, it might be run when an endpoint opens that CSV file in a spreadsheet program. The data flow looks like this 👇🏻 ```mermaid graph TD A(Repository) -->|developer dismissal, other data input| B(GitHub Advanced Security data) B -->|ghas-to-csv| C(CSV file) C -->|spreadsheet program| D(endpoint executes potentially malicious code) ``` ### Patches Please use version `v1` or later. That tag moves from using `csv` to `defusedcsv` to mitigate this problem. ### Workarounds There is no workaround. Please upgrade to using the latest tag, `v1` (or later). ### References * CWE-1236 information from [MITRE](https://cwe.mitre.org/data/definitions/1236.html) * CSV injection information from [OWASP](https://owasp.org/www-community/attacks/CSV_Injection) * CodeQL query for CWE-1236 in Python [here](https://github.com/github/codeql/tree/main/python/ql/src/experimental/Security/CWE-1236) * PyPI site for `defusedcsv` [here](https://pypi.org/project/defusedcsv/) ### For more information If you have any questions or comments about this advisory: * Open an issue in this repository [here](https://github.com/some-natalie/ghas-to-csv/issues)

Metadata

Created: 2022-09-16T22:06:55Z
Modified: 2022-09-19T20:20:23Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-634p-93h9-92vh/GHSA-634p-93h9-92vh.json
CWE IDs: ["CWE-1236", "CWE-74"]
Alternative ID: GHSA-634p-93h9-92vh
Finding: F090
Auto approve: 1