CVE-2020-15228

Environment Variable Injection in GitHub Actions

State
Published
Severity
3.5 Low
Published
Oct 1, 2020
Updated
Aug 4, 2024
Reserved
Jun 25, 2020

Read the record on cve.org

Description

In the `@actions/core` npm module before version 1.2.6,`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. 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.

Scores

CVSSScoreVectorSource
3.13.5 LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:NGitHub_M

Weaknesses

  • CWE-20 Improper Input Validation

Affected Products

ProductVersions
toolkitactions
  • < 1.2.6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.