CVE-2022-25856 Directory Traversal

High 7.5 Published Updated

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 ...

Weakness: CWE-59, CWE-22

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.

PackageAffectedFixed in
github.com/argoproj/argo-events GoAll versions1.7.1
github.com/argoproj/argo-events GoAll versions1.7.1
github.com/argoproj/argo-events GoAll versions1.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.

Sources

Also known as GHSA-qpgx-64h2-gc3c, GO-2022-0492, SNYK-GOLANG-GITHUBCOMARGOPROJARGOEVENTSSENSORSARTIFACTS-2864522.

Is CVE-2022-25856 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free