CVE-2022-1992 Path Traversal in gogs/gogs

Critical 10.0 Published Updated

Attackers can exploit a path traversal flaw in Gogs to read or modify arbitrary files on the server.

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-1992?

CVE-2022-1992 is a critical path traversal vulnerability in gogs/gogs, published on 8 Jun 2022. An attacker can exploit it over the internet without logging in, 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-1992?

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-1992?

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-1992 being exploited?

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

Sources

Also known as GHSA-994f-7g86-qr56, GO-2022-0570.

Is CVE-2022-1992 in your software?

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

Check your SBOMs for free