CVE-2022-1993 Path Traversal in gogs/gogs
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.
| 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-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.
Other vulnerabilities in gogs/gogs
Sources
Also known as GHSA-6vcc-v9vw-g2x5, GO-2022-0562.