# CVE-2026-34041: act: Unrestricted set-env and add-path command processing enables environment injection

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-27T19:17:00.000Z
- Modified: 2026-06-17T10:38:28.493Z
- Also known as: GHSA-xmgr-9pqc-h5vw, GO-2026-4891
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- nektos act: < 0.2.86; before 0.2.86
- github.com/nektos/act (Go): before 0.2.86

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/nektos/act/security/advisories/GHSA-xmgr-9pqc-h5vw> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/nektos/act/commit/0c739c8e39c41aa5a07665f732da9cab6df0097a> (fix, patch, web)
- <https://github.com/nektos/act/releases/tag/v0.2.86> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34041> (advisory)
- <https://github.com/advisories/GHSA-mfwh-5m23-j46w> (advisory, web)
- <https://github.com/nektos/act> (package)

## Sources

- CVE List: [CVE-2026-34041](https://www.cve.org/CVERecord?id=CVE-2026-34041), CVE Terms of Use, modified 2026-04-02
- GitHub Advisory Database: [GHSA-xmgr-9pqc-h5vw](https://github.com/advisories/GHSA-xmgr-9pqc-h5vw), CC-BY-4.0, modified 2026-04-02
- Go Vulnerability Database: [GO-2026-4891](https://pkg.go.dev/vuln/GO-2026-4891), CC-BY-4.0, modified 2026-04-02
- NVD: [CVE-2026-34041](https://nvd.nist.gov/vuln/detail/CVE-2026-34041), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-34041 · Whole record: https://cve.day/CVE-2026-34041.json · Rebuilt by cve.day 2026-11-25T22:59:17.554Z
