logo

CVE-2020-15228 @actions/core

Package

Manager: npm
Name: @actions/core
Vulnerable Version: >=0 <1.2.6

Severity

Level: Low

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

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

EPSS: 0.00322 pctl0.54615

Details

Environment Variable Injection in GitHub Actions ### 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](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. ### 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](https://github.com/actions/toolkit/issues)

Metadata

Created: 2020-10-01T17:16:20Z
Modified: 2021-11-19T15:11:59Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/10/GHSA-mfwh-5m23-j46w/GHSA-mfwh-5m23-j46w.json
CWE IDs: ["CWE-20", "CWE-77"]
Alternative ID: GHSA-mfwh-5m23-j46w
Finding: F422
Auto approve: 1