Every CVE Search/ Get API key

CVE-2022-0870

Server-Side Request Forgery (SSRF) in gogs/gogs

5.0 MediumFix available

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

Exploit likelihood

3.42%Up 2.5 points since Mar 12, 2022
90%50%10%1%

What each source reports

CVE List Score used 5.0

Server-Side Request Forgery (SSRF) in gogs/gogs

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

Record
CVE-2022-0870
CVSS 3.0
5.0 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Weakness
CWE-918
Updated
2026-11-02
EUVDEUVD-2022-1366 5.0

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

Record
EUVD-2022-1366
CVSS 3.0
5.0 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-7v5r-r995-q2x2 5.0

SSRF in repository migration

Gogs is a self-hosted Git service. The malicious user is able to discover services in the internal network through repository migration functionality. All installations accepting public traffic are affected. Internal network CIDRs are prohibited to be used as repository migration targets. Users should upgrade to 0.12.5 or the latest 0.13.0+dev. Gogs should be ran in its own private network until users can update.

Record
GHSA-7v5r-r995-q2x2
CVSS 3.0
5.0 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Weakness
CWE-918
Updated
2026-11-02
NVD 5.3

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

Record
CVE-2022-0870
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS 3.0
5.0 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:P/I:N/A:N
Weakness
CWE-918
Updated
2026-11-02
OSVALPINE-CVE-2022-0870 5.3

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

Record
ALPINE-CVE-2022-0870
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Updated
2026-11-03
OSV 5.0

Server-Side Request Forgery (SSRF) in gogs/gogs

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

Record
CVE-2022-0870
CVSS 3.0
5.0 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Weakness
CWE-918
Updated
2026-11-02
OSVGHSA-7v5r-r995-q2x2 5.0

SSRF in repository migration

Gogs is a self-hosted Git service. The malicious user is able to discover services in the internal network through repository migration functionality. All installations accepting public traffic are affected. Internal network CIDRs are prohibited to be used as repository migration targets. Users should upgrade to 0.12.5 or the latest 0.13.0+dev. Gogs should be ran in its own private network until users can update.

Record
GHSA-7v5r-r995-q2x2
CVSS 3.0
5.0 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Weakness
CWE-918
Updated
2026-11-02
OSVGO-2022-0566 No score

SSRF in repository migration in gogs.io/gogs

SSRF in repository migration in gogs.io/gogs

Record
GO-2022-0566
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
gogs.io/gogs
Go
before 0.12.5
0.12.5
gogs
Alpine:v3.15
before 0.12.6-r0
0.12.6-r0
gogs
Alpine:v3.16
before 0.12.6-r0
0.12.6-r0
gogs
Alpine:v3.17
before 0.12.6-r0
0.12.6-r0
gogs
Alpine:v3.18
before 0.12.6-r0
0.12.6-r0
gogs
Alpine:v3.19
before 0.12.6-r0
0.12.6-r0
gogs
Alpine:v3.20
before 0.12.6-r0
0.12.6-r0

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
NucleiGogs <0.12.5 - Server-Side Request Forgery

History

History
RecordedChangedSources
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, Nuclei, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-0870 is a medium vulnerability (CVSS 5.0) in Gogs, published March 11, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.42%, the 88th percentile. Fixed in gogs.io/gogs 0.12.5.

References

MoveEnter Open