{"id":"GHSA-q347-cg56-pcq4","aliases":["GHSA-q347-cg56-pcq4","GO-2022-0377"],"related":[],"kind":"vulnerability","state":"published","title":"SSRF in repository migration","summary":"### Impact\n\nThe malicious user is able to discover services in the internal network through repository migration functionality. All installations accepting public traffic are affected.\n\n### Patches\n\nInternal 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.\n\n### Workarounds\n\nRun Gogs in its own private network.\n\n### References\n\nhttps://www.huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531/\n\n### For more information\n\nIf you have any questions or comments about this advisory, please post on #6754.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nThe malicious user is able to discover services in the internal network through repository migration functionality. All installations accepting public traffic are affected.\n\n### Patches\n\nInternal 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.\n\n### Workarounds\n\nRun Gogs in its own private network.\n\n### References\n\nhttps://www.huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531/\n\n### For more information\n\nIf you have any questions or comments about this advisory, please post on #6754.","format":"markdown","source":"ghsa"},{"lang":"en","text":"SSRF in repository migration in gogs.io/gogs","format":"markdown","source":"go"}],"published":"2022-03-14T22:57:00.000Z","modified":"2026-03-03T04:52:09.833Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.12.5"}],"ecosystem":"Go","package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.12.5"}],"ecosystem":"Go","package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"go"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-q347-cg56-pcq4","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/gogs/gogs","tags":["package"],"sources":["ghsa"]},{"url":"https://www.huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q347-cg56-pcq4","url":"https://github.com/advisories/GHSA-q347-cg56-pcq4","licence":"CC-BY-4.0","modified":"2024-08-21T14:57:07.429Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0377","url":"https://pkg.go.dev/vuln/GO-2022-0377","licence":"CC-BY-4.0","modified":"2026-03-03T04:52:09.833Z"}],"updatedAt":"2026-11-25T22:56:23.067Z"}