patchminder
Weaponized · Nuclei CVE-2022-0870

Server-side request forgeryin Gogs.

Published 11 Mar 2022 · Updated 2 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Nuclei exploit is public.

Attack code is public
Severity
Medium 5.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 3.4% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 0.12.5 or later
In plain words

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

What to do now
  • Upgrade gogs/gogs to 0.12.5 or later.
  • Upgrade gogs.io/gogs (Go) to 0.12.5 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
gogs/gogs
before 0.12.5
0.12.5
CVE record
gogs.io/gogs (Go)
before 0.12.5
0.12.5
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 6 Mar 2022
    CVE ID reserved by @huntrdev.
  2. 11 Mar 2022
    Published in the CVE List.
  3. 2 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Nuclei).

Metasploit module
None known
Nuclei scan template
Available
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Gogs vulnerabilities

Same weakness: Server-side request forgery

All CWE-918 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-0870: Server-side request forgery in Gogs. https://patchminder.com/cve/cve-2022-0870/ (accessed 5 December 2026).