SecurityContext

CVE-2023-22726: act - Path Traversal

  • Cve: CVE-2023-22726
  • Name: act - Path Traversal
  • 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.
  • Impact: Attackers can overwrite or access arbitrary files on the host, potentially leading to privilege escalation or system compromise.
  • Remediation: Upgrade to version 0.2.40 or later. Alternatively, implement ValidPath() checks or manually sanitize user-provided paths during file operations.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_read, file_system_write, privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.0137
  • Epss percentile: 0.72476
  • Assignee: [email protected]
  • Published at: 2023-01-20T22:15:10Z
  • Age in days: 1404
  • Modified at: 2026-06-17T05:36:02Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 7
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-22726
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-434Unrestricted Upload of File with Dangerous Type
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/nektos/act/security/advisories/GHSA-pc99-qmg4-rcffnvd2023-01-20
https://securitylab.github.com/advisories/GHSL-2023-004_act/nvd2023-01-20

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/nektos/act/commit/63ae215071f94569d910964bdee866d91d6e3a10Patch, Third Party Advisory
https://github.com/nektos/act/security/advisories/GHSA-pc99-qmg4-rcffExploit, Third Party Advisory
https://securitylab.github.com/advisories/GHSL-2023-004_act/Exploit, Third Party Advisory
https://github.com/nektos/act/blob/master/pkg/artifacts/server.go#L65Third Party Advisory
https://github.com/nektos/act/blob/v0.2.35/pkg/artifacts/server.go#L245Third Party Advisory
https://github.com/nektos/act/blob/v0.2.35/pkg/artifacts/server.go#LL103C2-L103C2Third Party Advisory
https://github.com/nektos/act/issues/1553Issue Tracking, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
act_project:act< 0.2.40nonvd/v1/products/act_project/act

Projects

RepositoryLink kindsIndexedUrl
nektos/actcommit, fix, issues, package, releases, security_advisoryyes/v1/repositories/nektos/act

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2023-01-20
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts