act: Unrestricted set-env and add-path command processing enables environment injection
act is a project which allows for local running of github actions. Prior to version 0.2.86, act unconditionally processes the deprecated ::set-env:: and ::add-path:: workflow commands, which was disabled due to environment injection risks. When a workflow step echoes untrusted data to stdout, an attacker can inject these commands to set arbitrary environment variables or modify the PATH for all subsequent steps in the job. This issue has been patched in version 0.2.86.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-34041
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 02:06 UTC · Revision 1
Source evidence
act: Unrestricted set-env and add-path command processing enables environment injection
core-osv · Original sourcePublished 31 Mar 2026, 01:43 UTC
act is a project which allows for local running of github actions. Prior to version 0.2.86, act unconditionally processes the deprecated ::set-env:: and ::add-path:: workflow commands, which was disabled due to environment injection risks. When a workflow step echoes untrusted data to stdout, an attacker can inject these commands to set arbitrary environment variables or modify the PATH for all subsequent steps in the job. This issue has been patched in version 0.2.86.
osv:CVE-2026-34041
Complete source record
{
"id": "fe7b3f80ec7092507cadce16e25b32a59f2c04f0f44370a9797fb9eeca288335",
"url": "https://osv.dev/vulnerability/CVE-2026-34041",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "act: Unrestricted set-env and add-path command processing enables environment injection",
"summary": "act is a project which allows for local running of github actions. Prior to version 0.2.86, act unconditionally processes the deprecated ::set-env:: and ::add-path:: workflow commands, which was disabled due to environment injection risks. When a workflow step echoes untrusted data to stdout, an attacker can inject these commands to set arbitrary environment variables or modify the PATH for all subsequent steps in the job. This issue has been patched in version 0.2.86.",
"evidence": "osv:CVE-2026-34041",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-34041",
"aliases": [
"CVE-2026-34041",
"GHSA-xmgr-9pqc-h5vw",
"GO-2026-4891"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nektos/act",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "e71313c826e8636eac974ba709dd60e02eef41bd"
},
{
"fixed": "0c739c8e39c41aa5a07665f732da9cab6df0097a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:nektos:act:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.2.86"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "0c739c8e39c41aa5a07665f732da9cab6df0097a"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "e71313c826e8636eac974ba709dd60e02eef41bd"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v0.2.86"
}
]
}
}
],
"versions": [
"v0.2.85",
"v0.2.84",
"v0.2.83",
"v0.2.82",
"v0.2.81",
"v0.2.80",
"v0.2.79",
"v0.2.78",
"v0.2.77",
"v0.2.76",
"v0.2.75",
"v0.2.74",
"v0.2.73",
"v0.2.72",
"v0.2.71",
"v0.2.70",
"v0.2.69",
"v0.2.68",
"v0.2.67",
"v0.2.66",
"v0.2.65",
"v0.2.64",
"v0.2.63",
"v0.2.62",
"v0.2.61",
"v0.2.60",
"v0.2.59",
"v0.2.58",
"v0.2.57",
"v0.2.56",
"v0.2.55",
"v0.2.54",
"v0.2.53",
"v0.2.52",
"v0.2.51",
"v0.2.50",
"v0.2.49",
"v0.2.48",
"v0.2.47",
"v0.2.46",
"v0.2.45",
"v0.2.44",
"v0.2.43",
"v0.2.42",
"v0.2.41",
"v0.2.40",
"v0.2.39",
"v0.2.38",
"v0.2.37",
"v0.2.36",
"v0.2.35",
"v0.2.34",
"v0.2.33",
"v0.2.32",
"v0.2.31",
"v0.2.30",
"v0.2.29",
"v0.2.28",
"v0.2.27",
"v0.2.26",
"v0.2.25",
"v0.2.24",
"v0.2.23",
"v0.2.22",
"v0.2.21",
"v0.2.20",
"v0.2.19",
"v0.2.18",
"v0.2.17",
"v0.2.16",
"v0.2.15",
"v0.2.14",
"v0.2.13",
"v0.2.12",
"v0.2.11",
"v0.2.10",
"v0.2.9",
"v0.2.8",
"v0.2.7",
"v0.2.6",
"v0.2.5",
"v0.2.4",
"v0.2.3",
"v0.2.2",
"v0.2.1",
"v0.2.0",
"v0.1.3",
"v0.1.2",
"v0.1.1",
"v0.1.0",
"v0.0.5",
"v0.0.4",
"v0.0.3",
"v0.0.2",
"v0.0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-34041.json"
}
}
],
"modified": "2026-10-28T02:30:52.824262587Z",
"provider": "osv",
"references": [
"https://github.com/nektos/act/releases/tag/v0.2.86",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34041.json",
"https://github.com/nektos/act/security/advisories/GHSA-xmgr-9pqc-h5vw",
"https://nvd.nist.gov/vuln/detail/CVE-2026-34041",
"https://github.com/nektos/act/commit/0c739c8e39c41aa5a07665f732da9cab6df0097a"
],
"provider_metadata": {
"cwe_ids": [
"CWE-74"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34041.json"
}
},
"related_cves": [
{
"value": "CVE-2026-34041",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 521623,
"published_at": "2026-03-31T01:43:25.074+00:00"
}