ghsa-mfwh-5m23-j46w
Vulnerability from github
Impact
The @actions/core
npm module addPath
and exportVariable
functions communicate with the Actions Runner over stdout by generating a string in a specific format. Workflows that log untrusted data to stdout may invoke these commands, resulting in the path or environment variables being modified without the intention of the workflow or action author.
Patches
The runner will release an update that disables the set-env
and add-path
workflow commands in the near future. For now, users should upgrade to @actions/core v1.2.6
or later, and replace any instance of the set-env
or add-path
commands in their workflows with the new Environment File Syntax. Workflows and actions using the old commands or older versions of the toolkit will start to warn, then error out during workflow execution.
Workarounds
None, it is strongly suggested that you upgrade as soon as possible.
For more information
If you have any questions or comments about this advisory: * Open an issue in Actions Toolkit
{ "affected": [ { "package": { "ecosystem": "npm", "name": "@actions/core" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.2.6" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2020-15228" ], "database_specific": { "cwe_ids": [ "CWE-20", "CWE-77" ], "github_reviewed": true, "github_reviewed_at": "2020-10-01T17:16:10Z", "nvd_published_at": "2020-10-01T18:15:00Z", "severity": "LOW" }, "details": "### Impact\nThe `@actions/core` npm module `addPath` and `exportVariable` functions communicate with the Actions Runner over stdout by generating a string in a specific format. Workflows that log untrusted data to stdout may invoke these commands, resulting in the path or environment variables being modified without the intention of the workflow or action author. \n\n### Patches\nThe runner will release an update that disables the `set-env` and `add-path` workflow commands in the near future. For now, users should upgrade to `@actions/core v1.2.6` or later, and replace any instance of the `set-env` or `add-path` commands in their workflows with the new [Environment File Syntax](https://github.com/actions/toolkit/blob/main/docs/commands.md#environment-files). Workflows and actions using the old commands or older versions of the toolkit will start to warn, then error out during workflow execution.\n\n### Workarounds\nNone, it is strongly suggested that you upgrade as soon as possible.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Actions Toolkit](https://github.com/actions/toolkit/issues)", "id": "GHSA-mfwh-5m23-j46w", "modified": "2021-11-19T15:11:59Z", "published": "2020-10-01T17:16:20Z", "references": [ { "type": "WEB", "url": "https://github.com/actions/toolkit/security/advisories/GHSA-mfwh-5m23-j46w" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-15228" }, { "type": "WEB", "url": "https://github.com/actions/toolkit" }, { "type": "WEB", "url": "http://packetstormsecurity.com/files/159794/GitHub-Widespread-Injection.html" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N", "type": "CVSS_V3" } ], "summary": "Environment Variable Injection in GitHub Actions" }
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.