Skip to main content
← All vulnerabilities
CVE-2020-15228GHSA-MFWH-5M23-J46W

Environment Variable Injection in GitHub Actions

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.2.6
1 proof of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • actions toolkit

    fixed in 1.2.6

  • @actions/corenpm

    fixed in 1.2.6

References 3

GitHub · actions/toolkit

packetstormsecurity.com

GitHub · guettli/fix-CVE-2020-15228