NetSight
medium5.0

CVE-2022-0870

SSRF in repository migration

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
gogogs.io/gogs< 0.12.50.12.5

Affected products

VendorProductAffected versions
GogsGogs
before 0.12.5

Weakness classification

References