CVE-2022-1992 Path Traversal in gogs/gogs
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.
| Package | Affected | Fixed in |
|---|---|---|
gogs.io/gogs Go | All versions | 0.12.9 |
gogs.io/gogs Go | All versions | 0.12.9 |
gogs.io/gogs Go | All versions | 0.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.
Other vulnerabilities in gogs/gogs
Sources
Also known as GHSA-994f-7g86-qr56, GO-2022-0570.