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`.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-35954
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 05:45 UTC · Revision 1
Source evidence
Delimiter injection vulnerability in @actions/core exportVariable
core-osv · Original sourcePublished 13 Aug 2022, 23:40 UTC
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`.
osv:CVE-2022-35954
Complete source record
{
"id": "a2292bb8992ccd55293ffd64a209eed7f7f3d179897cae5273d3050c86f740ba",
"url": "https://osv.dev/vulnerability/CVE-2022-35954",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Delimiter injection vulnerability in @actions/core exportVariable",
"summary": "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`.",
"evidence": "osv:CVE-2022-35954",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2022-35954",
"aliases": [
"CVE-2022-35954",
"GHSA-7r3h-m5j6-3q42"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/actions/toolkit",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "4beda9cbc00ba6eefe387a937c21087ccb8ee9df"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "4beda9cbc00ba6eefe387a937c21087ccb8ee9df"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"@actions/tool-cache@1.1.1",
"@actions/io@1.0.1",
"@actions/github@1.1.0",
"@actions/exec@1.0.1",
"@actions/core@1.1.0",
"@actions/tool-cache@1.0.0",
"@actions/io@1.0.0",
"@actions/github@1.0.0",
"@actions/exec@1.0.0",
"@actions/core@1.0.0",
"0.0.2",
"0.0.1",
"0.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35954.json"
}
}
],
"modified": "2026-10-28T02:30:26.275843549Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35954.json",
"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"
],
"provider_metadata": {
"cwe_ids": [
"CWE-77"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"last_affected": "1.9.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35954.json"
}
},
"related_cves": [
{
"value": "CVE-2022-35954",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 492827,
"published_at": "2022-08-13T23:40:09+00:00"
}