{"id":"CVE-2020-15228","published":"2020-10-01T17:25:12Z","modified":"2024-08-04T13:08:22Z","title":"Environment Variable Injection in GitHub Actions","vendor":"actions","product":"toolkit","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01488,"percentile":0.74701,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/actions/toolkit/security/advisories/GHSA-mfwh-5m23-j46w","tags":["x_refsource_CONFIRM"]},{"url":"http://packetstormsecurity.com/files/159794/GitHub-Widespread-Injection.html","tags":["x_refsource_MISC"]}],"priority":{"score":22.4,"factors":[{"name":"EPSS percentile","points":14.94},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":2.45}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2020-11-12","earliestUrl":"https://github.com/guettli/fix-CVE-2020-15228","repos":[{"name":"guettli/fix-CVE-2020-15228","url":"https://github.com/guettli/fix-CVE-2020-15228","stars":7,"created":"2020-11-12"}]},"first":{"date":"2020-11-12","source":"PoC-in-GitHub","url":"https://github.com/guettli/fix-CVE-2020-15228"},"provenance":"source"},"vendorSlug":"actions","affectedVersions":[{"vendor":"actions","product":"toolkit","versions":["< 1.2.6"]}],"affected":[{"ecosystem":"npm","package":"@actions/core","vulnerableRanges":["<1.2.6"],"patched":["1.2.6"],"from":["GHSA-mfwh-5m23-j46w"],"provenance":"source"}],"summary":{"text":"The flaw lies in the @actions/core npm module of GitHub's toolkit, in versions before 1.2.6, where the addPath and exportVariable functions communicate with the Actions Runner by printing specially formatted strings to stdout. An attacker who can get untrusted data logged to a workflow's stdout over the network, with low privileges, can cause those strings to be interpreted as commands that modify the workflow's PATH or environment variables, which requires a workflow that logs that untrusted data and involves a scope change in the attack.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:09:37Z"},"euvd":{"id":"EUVD-2020-1433","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/159794/GitHub-Widespread-Injection.html"],"lineage":{"familyId":"fam-actions-toolkit-cve-2020-15228","children":[{"from":"CVE-2020-15228","to":"CVE-2026-34041","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-xmgr-9pqc-h5vw","via":"reference","url":"https://github.com/advisories/GHSA-mfwh-5m23-j46w"},{"kind":"osv-related","provenance":"source","id":"GO-2026-4891","via":"reference","url":"https://github.com/advisories/GHSA-mfwh-5m23-j46w"}]}],"packageHistory":[{"cve":"CVE-2020-15228","published":"2020-10-01","fixed":"1.2.6","kev":false},{"cve":"CVE-2022-35954","published":"2022-08-13","fixed":"1.9.1","kev":false,"link":{"from":"CVE-2020-15228","to":"CVE-2022-35954","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@actions/core","fromFixed":"1.2.6","toFixed":"1.9.1","daysApart":681}]}}],"package":"npm:@actions/core"}}