{"id":"CVE-2022-35954","published":"2022-08-13T23:40:09Z","modified":"2025-04-23T17:50:43Z","title":"Delimiter injection vulnerability in @actions/core exportVariable","vendor":"actions","product":"toolkit","tier":"tail","description":{"text":"The GitHub Actions ToolKit provides a set of packages to make creating actions easier. The `core.exportVariable` function uses a well known delimiter that attackers can use to break out of that specific variable and assign values to other arbitrary variables. Workflows that write untrusted values to the `GITHUB_ENV` file may cause the path or other environment variables to be modified without the intention of the workflow or action author. Users should upgrade to `@actions/core v1.9.1`. If you are unable to upgrade the `@actions/core` package, you can modify your action to ensure that any user input does not contain the delimiter `_GitHubActionsFileCommandDelimeter_` before calling `core.exportVariable`.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00704,"percentile":0.54223,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/actions/toolkit/security/advisories/GHSA-7r3h-m5j6-3q42","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/actions/toolkit/commit/4beda9cbc00ba6eefe387a937c21087ccb8ee9df","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":10.84},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"actions","affectedVersions":[{"vendor":"actions","product":"toolkit","versions":["<= 1.9.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:02:12.682718Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@actions/core","vulnerableRanges":["<1.9.1"],"patched":["1.9.1"],"from":["GHSA-7r3h-m5j6-3q42"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-6508","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-15228","published":"2020-10-01","fixed":"1.2.6","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}]}},{"cve":"CVE-2022-35954","published":"2022-08-13","fixed":"1.9.1","kev":false}],"package":"npm:@actions/core"}}