# CVE-2020-15228: Environment Variable Injection in GitHub Actions

- Severity: Low 3.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.49%, higher than 74% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-10-01T17:16:20.000Z
- Modified: 2026-06-17T02:56:18.857Z
- Also known as: GHSA-mfwh-5m23-j46w
- Weaknesses: CWE-20, CWE-77
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- actions toolkit: < 1.2.6
- @actions/core (npm): before 1.2.6
- toolkit_project toolkit: before 1.2.6

## Every score

- GitHub_M: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`

## References

- <http://packetstormsecurity.com/files/159794/GitHub-Widespread-Injection.html> (exploit, third-party-advisory, vdb-entry, web)
- <https://github.com/actions/toolkit/security/advisories/GHSA-mfwh-5m23-j46w> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15228> (advisory)
- <https://github.com/actions/toolkit> (web)

## Sources

- CVE List: [CVE-2020-15228](https://www.cve.org/CVERecord?id=CVE-2020-15228), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-mfwh-5m23-j46w](https://github.com/advisories/GHSA-mfwh-5m23-j46w), CC-BY-4.0, modified 2026-05-04
- NVD: [CVE-2020-15228](https://nvd.nist.gov/vuln/detail/CVE-2020-15228), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15228 · Whole record: https://cve.day/CVE-2020-15228.json · Rebuilt by cve.day 2026-11-25T22:57:55.001Z
