CVE-2022-35954
MEDIUM 5.0CVSS 3.1@actions/core has Delimiter Injection Vulnerability in exportVariable
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.
- Published
- 15 Aug 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-74CWE-77
- Also known as
- GHSA-7r3h-m5j6-3q42
- Sources
- NVDJSONOSV GHSA-7r3h-m5j6-3q42JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | github | toolkitcpe:2.3:a:github:toolkit:*:*:*:*:*:node.js:*:* |
< 1.9.1 | 1.9.1 |
| OSV | npm | @actions/core | < 1.9.1 | 1.9.1 |
References
- https://github.com/actions/toolkit/commit/4beda9cbc00ba6eefe387a937c21087ccb8ee9df · Patch, Third Party Advisory, WEB
- https://github.com/actions/toolkit/security/advisories/GHSA-7r3h-m5j6-3q42 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-35954 · ADVISORY
- https://github.com/actions/toolkit · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 15 Aug 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 18 Aug 2022)