# CVE-2023-22726: Unrestricted file upload leading to privilege escalation in act

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- 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): 1.37%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-01-20T16:00:36.000Z
- Modified: 2026-09-10T03:49:51.412Z
- Also known as: GHSA-pc99-qmg4-rcff, GO-2023-1504
- Weaknesses: CWE-22, CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

act is a project which allows for local running of github actions. The artifact server that stores artifacts from Github Action runs does not sanitize path inputs. This allows an attacker to download and overwrite arbitrary files on the host from a Github Action. This issue may lead to privilege escalation. The /upload endpoint is vulnerable to path traversal as filepath is user controlled, and ultimately flows into os.Mkdir and os.Open. The /artifact endpoint is vulnerable to path traversal as the path is variable is user controlled, and the specified file is ultimately returned by the server. This has been addressed in version 0.2.40. Users are advised to upgrade. Users unable to upgrade may, during implementation of Open and OpenAtEnd for FS, ensure to use ValidPath() to check against path traversal or clean the user-provided paths manually.

(As written by CVE List.)

## Affected

- nektos act: < 0.2.40
- github.com/nektos/act (Go): before 0.2.40
- act_project act: before 0.2.40

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/nektos/act/security/advisories/GHSA-pc99-qmg4-rcff> (exploit, advisory, third-party-advisory, web)
- <https://securitylab.github.com/advisories/GHSL-2023-004_act/> (exploit, third-party-advisory)
- <https://github.com/nektos/act/issues/1553> (issue-tracking, report, third-party-advisory, web)
- <https://github.com/nektos/act/commit/63ae215071f94569d910964bdee866d91d6e3a10> (fix, patch, third-party-advisory, web)
- <https://github.com/nektos/act/blob/master/pkg/artifacts/server.go#L65> (third-party-advisory, web)
- <https://github.com/nektos/act/blob/v0.2.35/pkg/artifacts/server.go#L245> (third-party-advisory, web)
- <https://github.com/nektos/act/blob/v0.2.35/pkg/artifacts/server.go#LL103C2-L103C2> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22726> (advisory)
- <https://github.com/nektos/act> (package)
- <https://github.com/nektos/act/releases/tag/v0.2.40> (web)
- <https://securitylab.github.com/advisories/GHSL-2023-004_act> (advisory)

## Sources

- CVE List: [CVE-2023-22726](https://www.cve.org/CVERecord?id=CVE-2023-22726), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-pc99-qmg4-rcff](https://github.com/advisories/GHSA-pc99-qmg4-rcff), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-1504](https://pkg.go.dev/vuln/GO-2023-1504), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2023-22726](https://nvd.nist.gov/vuln/detail/CVE-2023-22726), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-22726 · Whole record: https://cve.day/CVE-2023-22726.json · Rebuilt by cve.day 2026-11-25T22:58:21.690Z
