CVE-2022-0870 Server-Side Request Forgery (SSRF) in gogs/gogs
An attacker can exploit a Server-Side Request Forgery vulnerability in Gogs to access internal resources or bypass security controls.
- 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-0870?
CVE-2022-0870 is a medium-severity server-side request forgery vulnerability in gogs/gogs, published on 11 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.5.
Weakness: CWE-918
Which versions are affected by CVE-2022-0870?
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-0870?
Upgrade gogs.io/gogs to 0.12.5 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2022-0870 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-0870 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in gogs/gogs
Sources
Also known as CLEANSTART-2024-SC73733, GHSA-7v5r-r995-q2x2, GO-2022-0566.