{"id":"CVE-2022-1285","aliases":["CVE-2022-1285","GHSA-w689-557m-2cvq","GO-2022-0583"],"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.8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe malicious user is able to discover services in the internal network through webhook functionality. All installations accepting public traffic are affected.\n\n### Patches\n\nWebhook payload URLs are revalidated before each delivery to make sure they are not resolved to blocked local network addresses. Users should upgrade to 0.12.8 or the latest 0.13.0+dev.\n\n### Workarounds\n\nRun Gogs in its own private network.\n\n### References\n\nhttps://huntr.dev/bounties/da1fbd6e-7a02-458e-9c2e-6d226c47046d/\n\n### For more information\n\nIf you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6901.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Server-Side Request Forgery in gogs webhook 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.8","source":"nvd"}],"published":"2022-06-01T05:55:10.000Z","modified":"2026-06-17T04:22:09.087Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.12.8","status":"affected"}],"vendor":"gogs","product":"gogs/gogs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.12.8"}],"ecosystem":"Go","package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.12.8"}],"ecosystem":"Go","package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"go"},{"ranges":[{"status":"affected","fixed":"0.12.8"}],"vendor":"gogs","product":"gogs","cpe":"cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/da1fbd6e-7a02-458e-9c2e-6d226c47046d","tags":["exploit","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/gogs/gogs/commit/7885f454a4946c4bbec1b4f8c603b5eea7429c7f","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-w689-557m-2cvq","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1285","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/gogs/gogs","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-1285","url":"https://www.cve.org/CVERecord?id=CVE-2022-1285","licence":"CVE Terms of Use","modified":"2024-08-02T23:55:24.665Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w689-557m-2cvq","url":"https://github.com/advisories/GHSA-w689-557m-2cvq","licence":"CC-BY-4.0","modified":"2024-08-21T15:41:45.374Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0583","url":"https://pkg.go.dev/vuln/GO-2022-0583","licence":"CC-BY-4.0","modified":"2026-03-03T04:50:34.046Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-1285","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1285","licence":"Public domain","modified":"2026-06-17T04:22:09.087Z"}],"updatedAt":"2026-11-25T22:58:12.017Z","epss":{"score":0.01111,"percentile":0.66881,"date":"2026-12-01T12:00:22.000Z"}}