{"id":"CVE-2022-1285","aliases":["GHSA-w689-557m-2cvq","GO-2022-0583"],"url":"https://o3.security/vulnerability/CVE-2022-1285","summary":"Server-Side Request Forgery (SSRF) in gogs/gogs","details":"### 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.\n","published":"2022-06-01T05:55:10Z","modified":"2026-08-12T03:51:26.970165049Z","cvss":{"score":8.3,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"},"epss":{"score":0.01069,"percentile":0.61651,"asOf":"2026-08-08"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Go","name":"gogs.io/gogs","fixedVersion":"0.12.8"}],"fix":{"url":"https://github.com/gogs/gogs/commit/7885f454a4946c4bbec1b4f8c603b5eea7429c7f","label":"gogs/gogs@7885f45"},"references":[{"type":"WEB","url":"https://huntr.dev/bounties/da1fbd6e-7a02-458e-9c2e-6d226c47046d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1285.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1285"},{"type":"FIX","url":"https://github.com/gogs/gogs/commit/7885f454a4946c4bbec1b4f8c603b5eea7429c7f"},{"type":"WEB","url":"https://github.com/gogs/gogs/security/advisories/GHSA-w689-557m-2cvq"},{"type":"PACKAGE","url":"https://github.com/gogs/gogs"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:26.970165049Z"}}