{"schemaVersion":3,"id":"CVE-2022-35954","aliases":["GHSA-7r3h-m5j6-3q42"],"status":"published","duplicateOf":null,"title":null,"description":"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`.","dates":{"published":"2022-08-13T23:40:09.000Z","modified":"2025-04-23T17:50:43.987Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","exploitability":7.9,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00684,"percentile":0.5173,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.014999999999999996,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00669},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00684,"percentile":0.5173}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00669,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00684,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00684,"percentile":0.5173}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command ('Command Injection')","description":"The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","description":"The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/74.html"}],"affected":[{"vendor":"actions","product":"toolkit","name":"toolkit","label":"toolkit","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.9.0","eol":null,"hubHref":"/vendor/actions/toolkit"},{"vendor":"github","product":"toolkit","name":"toolkit","label":"toolkit","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.9.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.1","eol":null,"hubHref":"/vendor/github/toolkit"},{"vendor":"@actions","product":"core","name":"@actions/core","label":"core","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@actions/core","purlType":"npm","versions":[{"text":"< 1.9.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.1","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/actions/toolkit/security/advisories/GHSA-7r3h-m5j6-3q42","label":"github.com/actions/toolkit/security/advisories/GHSA-7r3h-m5j6-3q42","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Third Party Advisory"]},{"url":"https://github.com/actions/toolkit/commit/4beda9cbc00ba6eefe387a937c21087ccb8ee9df","label":"github.com/actions/toolkit/commit/4beda9cbc00ba6eefe387a937c21087ccb8ee9df","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35954","label":"nvd.nist.gov/vuln/detail/CVE-2022-35954","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/actions/toolkit","label":"github.com/actions/toolkit","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-08-13T23:40:09.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T17:50:43.987Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":20,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T00:28:11.864Z","stale":false,"partial":false}}