8.8
HIGH
CVE-2023-22726
"Act Artifact Server Path Traversal Vulnerability"
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.

INFO

Published Date :

Jan. 20, 2023, 10:15 p.m.

Last Modified :

Feb. 3, 2023, 3:56 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

2.8
Public PoC/Exploit Available at Github

CVE-2023-22726 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2023-22726 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Act_project act
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-22726.

URL Resource
https://github.com/nektos/act/blob/master/pkg/artifacts/server.go#L65 Third Party Advisory
https://github.com/nektos/act/blob/v0.2.35/pkg/artifacts/server.go#L245 Third Party Advisory
https://github.com/nektos/act/blob/v0.2.35/pkg/artifacts/server.go#LL103C2-L103C2 Third Party Advisory
https://github.com/nektos/act/commit/63ae215071f94569d910964bdee866d91d6e3a10 Patch Third Party Advisory
https://github.com/nektos/act/issues/1553 Issue Tracking Third Party Advisory
https://github.com/nektos/act/security/advisories/GHSA-pc99-qmg4-rcff Exploit Third Party Advisory
https://securitylab.github.com/advisories/GHSL-2023-004_act/ Exploit Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

CVE-2023-22726

PowerShell VBScript

Updated: 2 weeks, 1 day ago
0 stars 0 fork 0 watcher
Born at : May 29, 2024, 10:38 a.m. This repo has been linked 1 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 13 hours, 8 minutes ago
6277 stars 1090 fork 1090 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 928 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following table lists the changes that have been made to the CVE-2023-22726 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Feb. 03, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/nektos/act/blob/master/pkg/artifacts/server.go#L65 No Types Assigned https://github.com/nektos/act/blob/master/pkg/artifacts/server.go#L65 Third Party Advisory
    Changed Reference Type https://github.com/nektos/act/blob/v0.2.35/pkg/artifacts/server.go#L245 No Types Assigned https://github.com/nektos/act/blob/v0.2.35/pkg/artifacts/server.go#L245 Third Party Advisory
    Changed Reference Type https://github.com/nektos/act/blob/v0.2.35/pkg/artifacts/server.go#LL103C2-L103C2 No Types Assigned https://github.com/nektos/act/blob/v0.2.35/pkg/artifacts/server.go#LL103C2-L103C2 Third Party Advisory
    Changed Reference Type https://github.com/nektos/act/commit/63ae215071f94569d910964bdee866d91d6e3a10 No Types Assigned https://github.com/nektos/act/commit/63ae215071f94569d910964bdee866d91d6e3a10 Patch, Third Party Advisory
    Changed Reference Type https://github.com/nektos/act/issues/1553 No Types Assigned https://github.com/nektos/act/issues/1553 Issue Tracking, Third Party Advisory
    Changed Reference Type https://github.com/nektos/act/security/advisories/GHSA-pc99-qmg4-rcff No Types Assigned https://github.com/nektos/act/security/advisories/GHSA-pc99-qmg4-rcff Exploit, Third Party Advisory
    Changed Reference Type https://securitylab.github.com/advisories/GHSL-2023-004_act/ No Types Assigned https://securitylab.github.com/advisories/GHSL-2023-004_act/ Exploit, Third Party Advisory
    Added CWE NIST CWE-22
    Added CPE Configuration OR *cpe:2.3:a:act_project:act:*:*:*:*:*:go:*:* versions up to (excluding) 0.2.40
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-22726 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.30 }} 0.01%

score

0.69217

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability