{"id":"CVE-2022-0870","aliases":["CVE-2022-0870","GHSA-7v5r-r995-q2x2","GO-2022-0566"],"related":[],"kind":"vulnerability","state":"published","title":"Server-Side Request Forgery (SSRF) in gogs/gogs","summary":"Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.5.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"SSRF in repository migration in gogs.io/gogs","format":"markdown","source":"go"},{"lang":"es","text":"Una vulnerabilidad de tipo Server-Side Request Forgery (SSRF) en el repositorio de GitHub gogs/gogs versiones anteriores a 0.12.5","source":"nvd"}],"published":"2022-03-11T10:40:09.000Z","modified":"2026-06-17T04:21:24.260Z","severity":{"scorer":"@huntrdev","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":"@huntrdev","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"},{"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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.12.5","status":"affected"}],"vendor":"gogs","product":"gogs/gogs","source":"cvelist"},{"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"},{"ranges":[{"status":"affected","fixed":"0.12.5"}],"vendor":"gogs","product":"gogs","cpe":"cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/gogs/gogs/commit/91f2cde5e95f146bfe4765e837e7282df6c7cabb","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0870","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/gogs/gogs","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-7v5r-r995-q2x2","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-0870","url":"https://www.cve.org/CVERecord?id=CVE-2022-0870","licence":"CVE Terms of Use","modified":"2024-08-02T23:40:04.563Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7v5r-r995-q2x2","url":"https://github.com/advisories/GHSA-7v5r-r995-q2x2","licence":"CC-BY-4.0","modified":"2024-08-21T15:26:41.990Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0566","url":"https://pkg.go.dev/vuln/GO-2022-0566","licence":"CC-BY-4.0","modified":"2026-03-03T04:50:34.774Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-0870","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0870","licence":"Public domain","modified":"2026-06-17T04:21:24.260Z"}],"updatedAt":"2026-11-25T22:58:10.045Z","epss":{"score":0.03422,"percentile":0.89234,"date":"2026-12-02T12:00:21.000Z"}}