Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS03cjNoLW01ajYtM3E0Ms4AAuFm
@actions/core has Delimiter Injection Vulnerability in exportVariable
Impact
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.
Patches
Users should upgrade to @actions/core v1.9.1
.
Workarounds
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
.
References
More information about setting-an-environment-variable in workflows
If you have any questions or comments about this advisory:
- Open an issue in
actions/toolkit
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS03cjNoLW01ajYtM3E0Ms4AAuFm
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 1 year ago
Updated: over 1 year ago
CVSS Score: 5.0
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N
Identifiers: GHSA-7r3h-m5j6-3q42, CVE-2022-35954
References:
- https://github.com/actions/toolkit/security/advisories/GHSA-7r3h-m5j6-3q42
- https://nvd.nist.gov/vuln/detail/CVE-2022-35954
- https://github.com/actions/toolkit/commit/4beda9cbc00ba6eefe387a937c21087ccb8ee9df
- https://github.com/advisories/GHSA-7r3h-m5j6-3q42
Blast Radius: 25.8
Affected Packages
npm:@actions/core
Dependent packages: 939Dependent repositories: 147,199
Downloads: 9,005,693 last month
Affected Version Ranges: <= 1.9.0
Fixed in: 1.9.1
All affected versions: 1.0.0, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0
All unaffected versions: 1.9.1, 1.10.0, 1.10.1