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

- Severity: Medium 5.0 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.42%, higher than 89% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-11T10:40:09.000Z
- Modified: 2026-06-17T04:21:24.260Z
- Also known as: GHSA-7v5r-r995-q2x2, GO-2022-0566
- Weaknesses: CWE-918
- Assigned by: @huntrdev

## Description

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

(As written by CVE List.)

## Affected

- gogs gogs/gogs: from unspecified before 0.12.5
- gogs.io/gogs (Go): before 0.12.5
- gogs gogs: before 0.12.5

## Every score

- @huntrdev: CVSS:3.0 5.0 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.0 5.0 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/gogs/gogs/commit/91f2cde5e95f146bfe4765e837e7282df6c7cabb> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-0870> (advisory)
- <https://github.com/gogs/gogs> (package)
- <https://github.com/advisories/GHSA-7v5r-r995-q2x2> (advisory)

## Sources

- CVE List: [CVE-2022-0870](https://www.cve.org/CVERecord?id=CVE-2022-0870), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-7v5r-r995-q2x2](https://github.com/advisories/GHSA-7v5r-r995-q2x2), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0566](https://pkg.go.dev/vuln/GO-2022-0566), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-0870](https://nvd.nist.gov/vuln/detail/CVE-2022-0870), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-0870 · Whole record: https://cve.day/CVE-2022-0870.json · Rebuilt by cve.day 2026-11-25T22:58:10.045Z
