CVE-2022-0870 json
Server-Side Request Forgery (SSRF) in gogs/gogs
published 2022-03-11 4 y ago modified 2026-06-17 4 mo ago also GHSA-7v5r-r995-q2x2 , GO-2022-0566 , EUVD-2022-1366
- cvss
- 5.0
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.4%
- EPSS 3.4% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.5.
Patch / fix
- go gogs.io/gogs 0.12.5
- gogs gogs/gogs 0.12.5
- gogs Alpine 3.20, Alpine 3.19, Alpine 3.18 +3 more 0.12.6-r0
alpine advisories ALPINE-CVE-2022-0870
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Exploit prediction
3.42% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Gogs <0.12.5 - Server-Side Request Forgery nuclei detection template
- huntr.dev https://huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 5.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.0 | 5.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | gogs.io/gogs | <0.12.5 |
0.12.5 |
Affected products
- gogs gogs/gogs
Classification
- Weakness
-
- CWE-918 Server-Side Request Forgery
References
-
github.com
/gogs/gogs/commit/91f2cde5e95f146bfe4765e837e7282df6c7cabb
web, patch, third-party-advisory
-
huntr.dev
/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531
web, exploit, issue-tracking, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-0870
advisory
-
github.com
/gogs/gogs
package
-
github.com
/advisories/GHSA-7v5r-r995-q2x2
advisory
Sources
- CVE List CVE-2022-0870
- GitHub Advisory GHSA-7v5r-r995-q2x2
- NVD CVE-2022-0870
- OSV GO-2022-0566
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.