Advisory

GHSA-7v5r-r995-q2x2

Also known as: CVE-2022-0870, GO-2022-0566

Summary

SSRF in repository migration

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-03-12 00:00 UTC
Modified
2024-08-21 15:26 UTC

Affected packages and fixes

gogs.io/gogs

Go · All systems

Affected

  • introduced 0, fixed 0.12.5 (semver)

Fixed versions

0.12.5

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences