Advisory record · GHSA-g2f5-gjr4-qjvm

Gogs has a Migration Redirect Bypass that Leads to Internal Repository Theft

CVSS 8.7 HighEPSS 0.0038 · 32nd percentile

Published by the GitHub Advisory Database at 23 Jun 2026, 17:01 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gogs.io/gogsGo<0.14.30.14.3
Identifiers
GHSA-g2f5-gjr4-qjvm · CVE-2026-52805 · GO-2026-5387
Weakness (CWE)
CWE-918
Published
23 Jun 2026
Updated
21 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Gogs versions before 0.14.3 are vulnerable to a server-side request forgery in the repository migration feature. The URL check only examines the submitted hostname, and the underlying git clone follows HTTP redirects, so an authenticated user can submit a public URL that redirects to an internal address and import that internal repository's contents. Upgrade to Gogs 0.14.3 or later.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.7 High 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0038, the 32nd percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 24 Jun 2026, 20:22 UTC Confirmed by the CVE List
  2. 24 Jun 2026, 21:16 UTC Confirmed by NVD
  3. 31 Oct 2026, 15:05 UTC First seen by agentprime
  4. 31 Oct 2026, 15:05 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.