{"id":"CVE-2026-52805","published":"2026-06-24T20:22:15Z","modified":"2026-11-03T22:13:27Z","title":"Gogs: Migration Redirect Bypass Leads to Internal Repository Theft","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"Gogs is an open source self-hosted Git service. Prior to 0.14.3, a Server-Side Request Forgery (SSRF) vulnerability exists in the repository migration functionality. The application validates only the initially submitted URL hostname, but git clone --mirror follows HTTP redirects. An authenticated user can submit a public URL that redirects to a blocked internal endpoint (e.g., 127.0.0.1), importing the internal repository's contents into an attacker-controlled repository. This vulnerability is fixed in 0.14.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00384,"percentile":0.33307,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-g2f5-gjr4-qjvm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/pull/8324","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/commit/b9a0093e9cd1b2b3c7f42f9feca396dc772c4f1b","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/releases/tag/v0.14.3","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":6.66},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.14.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-26T03:55:43.665772Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.14.3","all versions"],"patched":["0.14.3"],"from":["GHSA-g2f5-gjr4-qjvm","GO-2026-5387"],"provenance":"source"}],"summary":{"text":"Gogs, a self-hosted Git service, has a server-side request forgery flaw in its repository migration feature, where only the initially submitted URL's hostname is validated while git clone --mirror follows HTTP redirects. An authenticated user can exploit this by submitting a public URL that redirects to a blocked internal address such as 127.0.0.1, causing the internal repository's contents to be imported into a repository the attacker controls; user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:48Z"},"euvd":{"id":"EUVD-2026-39074","exploited":false,"provenance":"source"}}