{"id":"GHSA-q347-cg56-pcq4","aliases":["GO-2022-0377"],"status":"published","title":"SSRF in repository migration","description":"### 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.","severity":{"version":"3.0","score":5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-918"],"published":"2022-03-14T22:57:00Z","modified":"2026-03-03T04:52:09Z","fixes":[{"ecosystem":"Go","package":"gogs.io/gogs","fixed_in":["0.12.5"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.5"}]}]},{"source":"osv","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.5"}]}]},{"source":"osv","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.5"}]}]}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-q347-cg56-pcq4","tags":["web","advisory"]},{"url":"https://www.huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531/"},{"url":"https://github.com/advisories/GHSA-q347-cg56-pcq4"},{"url":"https://github.com/gogs/gogs","tags":["package"]},{"url":"https://www.huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531","tags":["web"]}],"sources":{"ghsa":[{"id":"GHSA-q347-cg56-pcq4","title":"SSRF in repository migration","description":"### 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.\n","status":"published","published":"2022-03-14T22:57:00Z","modified":"2023-01-11T05:05:46Z","cvss":[{"version":"3.0","score":5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T14:36:12.361159Z"}],"osv":[{"id":"GHSA-q347-cg56-pcq4","title":"SSRF in repository migration","description":"### 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.\n","status":"published","published":"2022-03-14T22:57:00Z","modified":"2024-08-21T14:57:07.429269Z","cvss":[{"version":"3.0","score":5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T15:46:54.055966Z"},{"id":"GO-2022-0377","title":"SSRF in repository migration in gogs.io/gogs","description":"SSRF in repository migration in gogs.io/gogs","status":"published","published":"2024-08-21T14:30:31Z","modified":"2026-03-03T04:52:09.833161Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
