Arbitrary File Upload Affecting github.com/nektos/act/pkg/artifacts package, versions <0.2.40


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.52% (78th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary File Upload vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMNEKTOSACTPKGARTIFACTS-3244387
  • published22 Jan 2023
  • disclosed20 Jan 2023
  • creditKevin Stubbings

Introduced: 20 Jan 2023

CVE-2023-22726  (opens in a new tab)
CWE-434  (opens in a new tab)

How to fix?

Upgrade github.com/nektos/act/pkg/artifacts to version 0.2.40 or higher.

Overview

github.com/nektos/act/pkg/artifacts is a package for running GitHub Actions locally

Affected versions of this package are vulnerable to Arbitrary File Upload via Github Action artifacts uploaded through the /upload endpoint, which are accepted and passed to os.Mkdir and os.Open without sanitizing path inputs. This may lead to privilege escalation.

CVSS Base Scores

version 3.1