CVE-2022-25856 Directory Traversal
Attackers can read arbitrary files via directory traversal in the GitArtifactReader API of the Argo Events Go library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-25856?
CVE-2022-25856 is a high-severity path traversal vulnerability in github.com/argoproj/argo-events/sensors/artifacts, published on 17 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The package github.com/argoproj/argo-events/sensors/artifacts before 1.7.1 are vulnerable to Directory Traversal in the (g *GitArtifactReader).Read() API in git.go. This could allow arbitrary file reads if the GitArtifactReader is provided a pathname containing a symbolic link or an implicit directory name such as ...
Which versions are affected by CVE-2022-25856?
3 open source packages ship an affected version, including github.com/argoproj/argo-events. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/argoproj/argo-events Go | All versions | 1.7.1 |
github.com/argoproj/argo-events Go | All versions | 1.7.1 |
github.com/argoproj/argo-events Go | All versions | 1.7.1 |
Products include Argo Events Project Argo Events.
How do I fix CVE-2022-25856?
Upgrade github.com/argoproj/argo-events to 1.7.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-25856 being exploited?
There is no known exploitation of CVE-2022-25856 in the wild and no public exploit code.
Other vulnerabilities in github.com/argoproj/argo-events/sensors/artifacts
Sources
Also known as GHSA-qpgx-64h2-gc3c, GO-2022-0492, SNYK-GOLANG-GITHUBCOMARGOPROJARGOEVENTSSENSORSARTIFACTS-2864522.