GitHub Actions @actions/core <1.9.1 ENV Var Injection via exportVariable
CVE-2022-35954 Published on August 15, 2022
Delimiter injection vulnerability in @actions/core 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`.
Vulnerability Analysis
CVE-2022-35954 is exploitable with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality, with no impact on integrity, and no impact on availability.
Weakness Type
What is a Command Injection Vulnerability?
The software 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.
CVE-2022-35954 has been classified to as a Command Injection vulnerability or weakness.
Products Associated with CVE-2022-35954
Want to know whenever a new CVE is published for github Toolkit? stack.watch will email you.
Affected Versions
actions toolkit Version <= 1.9.0 is affected by CVE-2022-35954Vulnerable Packages
The following package name and versions may be associated with CVE-2022-35954
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| npm | @actions/core | <= 1.9.0 | 1.9.1 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.