{"id":"CVE-2022-1285","aliases":["ALPINE-CVE-2022-1285","EUVD-2022-6172","GHSA-w689-557m-2cvq","GO-2022-0583"],"status":"published","title":"Server-Side Request Forgery (SSRF) in gogs/gogs","description":"Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.","severity":{"version":"3.0","score":8.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01116,"percentile":0.66292,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-918"],"published":"2022-06-01T05:55:10Z","modified":"2026-11-03T07:30:24Z","fixes":[{"ecosystem":"Go","package":"gogs.io/gogs","fixed_in":["0.12.8"],"sources":["ghsa","osv"]},{"ecosystem":"Alpine:v3.17","package":"gogs","fixed_in":["0.12.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"gogs","fixed_in":["0.12.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"gogs","fixed_in":["0.12.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"gogs","fixed_in":["0.12.9-r0"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.8"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"gogs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"gogs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"gogs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"gogs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.9-r0"}]}]},{"source":"osv","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.8"}]}]},{"source":"osv","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.8"}]}]}],"products":[{"vendor":"gogs","product":"gogs"},{"vendor":"gogs","product":"gogs/gogs"}],"references":[{"url":"https://huntr.dev/bounties/da1fbd6e-7a02-458e-9c2e-6d226c47046d","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Third Party Advisory","web"]},{"url":"https://github.com/gogs/gogs/commit/7885f454a4946c4bbec1b4f8c603b5eea7429c7f","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-w689-557m-2cvq","tags":["web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1285","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-w689-557m-2cvq"},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-1285","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1285.json","tags":["advisory"]},{"url":"https://github.com/gogs/gogs","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-1285","title":"Server-Side Request Forgery (SSRF) in gogs/gogs","description":"Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.","status":"published","published":"2022-06-01T05:55:10Z","modified":"2024-08-02T23:55:24.665Z","cvss":[{"version":"3.0","score":8.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T14:34:38.263045Z"}],"euvd":[{"id":"EUVD-2022-6172","description":"Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.","status":"published","published":"2022-06-01T05:55:10Z","modified":"2024-08-02T23:55:24Z","cvss":[{"version":"3.0","score":8.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-11-03T03:26:01.998866Z"}],"ghsa":[{"id":"GHSA-w689-557m-2cvq","title":"Server-Side Request Forgery in gogs webhook","description":"### 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","status":"published","published":"2022-06-03T15:35:32Z","modified":"2023-02-01T05:08:18Z","cvss":[{"version":"3.0","score":8.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T14:36:39.76883Z"}],"nvd":[{"id":"CVE-2022-1285","description":"Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.","status":"published","published":"2022-06-01T06:15:07.193Z","modified":"2026-06-17T04:22:09.087Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"},{"version":"3.0","score":8.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","level":"high","assessor":"secondary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T14:07:21.261605Z"}],"osv":[{"id":"ALPINE-CVE-2022-1285","description":"Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.","status":"published","published":"2022-06-01T06:15:07.193Z","modified":"2026-11-03T07:30:24.621438187Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-03T07:50:38.973973Z"},{"id":"CVE-2022-1285","title":"Server-Side Request Forgery (SSRF) in gogs/gogs","description":"Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.","status":"published","published":"2022-06-01T05:55:10Z","modified":"2026-10-28T02:31:03.157787491Z","cvss":[{"version":"3.0","score":8.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T15:44:23.245966Z"},{"id":"GHSA-w689-557m-2cvq","title":"Server-Side Request Forgery in gogs webhook","description":"### 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","status":"published","published":"2022-06-03T15:35:32Z","modified":"2024-08-21T15:41:45.374667Z","cvss":[{"version":"3.0","score":8.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-918"],"updated_at":"2026-11-02T15:46:58.04805Z"},{"id":"GO-2022-0583","title":"Server-Side Request Forgery in gogs webhook in gogs.io/gogs","description":"Server-Side Request Forgery in gogs webhook in gogs.io/gogs","status":"published","published":"2024-08-21T15:11:38Z","modified":"2026-03-03T04:50:34.046954Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
