CVE-2022-1993 Path Traversal in gogs/gogs

High 8.1 Published Updated

An attacker can exploit a path traversal vulnerability in Gogs to read arbitrary files from the server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-1993?

CVE-2022-1993 is a high-severity path traversal vulnerability in gogs/gogs, published on 8 Jun 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Path Traversal in GitHub repository gogs/gogs prior to 0.12.9.

Weakness: CWE-22

Which versions are affected by CVE-2022-1993?

3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.

PackageAffectedFixed in
gogs.io/gogs GoAll versions0.12.9
gogs.io/gogs GoAll versions0.12.9
gogs.io/gogs GoAll versions0.12.9

Products include Gogs Gogs.

How do I fix CVE-2022-1993?

Upgrade gogs.io/gogs to 0.12.9 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-1993 being exploited?

There is no known exploitation of CVE-2022-1993 in the wild and no public exploit code.

Sources

Also known as GHSA-6vcc-v9vw-g2x5, GO-2022-0562.

Is CVE-2022-1993 in your software?

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

Check your SBOMs for free