CVE-2022-0871 Missing Authorization in gogs/gogs
Attackers can access or modify repository data without proper authorization checks in the Gogs Git hosting service.
- 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-0871?
CVE-2022-0871 is a high-severity missing authorization vulnerability in gogs/gogs, published on 11 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Missing Authorization in GitHub repository gogs/gogs prior to 0.12.5.
Weakness: CWE-862
Which versions are affected by CVE-2022-0871?
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.5 |
gogs.io/gogs Go | All versions | 0.12.5 |
gogs.io/gogs Go | All versions | 0.12.5 |
Products include Gogs Gogs.
How do I fix CVE-2022-0871?
Upgrade gogs.io/gogs to 0.12.5 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2022-0871 being exploited?
There is no known exploitation of CVE-2022-0871 in the wild and no public exploit code.
Other vulnerabilities in gogs/gogs
Sources
Also known as CLEANSTART-2024-BZ87721, GHSA-gw5h-h6hj-f56g, GO-2022-0369.