PT-2022-13488 · Gogs · Gogs

Published

2022-03-11

·

Updated

2024-08-21

·

CVE-2022-0870

CVSS v2.0

5.0

Medium

VectorAV:N/AC:L/Au:N/C:P/I:N/A:N
Name of the Vulnerable Software and Affected Versions gogs versions prior to 0.12.5
Description The issue is related to Server-Side Request Forgery (SSRF) in the repository migration functionality of gogs. This allows a malicious user to discover services in the internal network. All installations that accept public traffic are affected. The internal network CIDRs are prohibited from being used as repository migration targets.
Recommendations For versions prior to 0.12.5, upgrade to 0.12.5 or the latest 0.13.0+dev to resolve the issue. As a temporary workaround, consider running gogs in its own private network until an update can be applied. Restrict access to the repository migration functionality to minimize the risk of exploitation.

Exploit

Fix

SSRF

Weakness Enumeration

Related Identifiers

CVE-2022-0870
GHSA-7V5R-R995-Q2X2
GO-2022-0566

Affected Products

Gogs