CVE-2026-52805
HIGH 8.7CVSS 3.1Gogs has a Migration Redirect Bypass that Leads to Internal Repository Theft
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.
- Published
- 24 Jun 2026
- Last modified
- 3 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-918
- Also known as
- GHSA-g2f5-gjr4-qjvmGO-2026-5387
- Sources
- NVDJSONOSV GHSA-g2f5-gjr4-qjvmJSONOSV GO-2026-5387JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | gogs.io/gogs | < 0.14.3 | 0.14.3 |
| OSV | Go | gogs.io/gogs | all versions |
References
- https://github.com/gogs/gogs/commit/b9a0093e9cd1b2b3c7f42f9feca396dc772c4f1b · WEB
- https://github.com/gogs/gogs/pull/8324 · WEB
- https://github.com/gogs/gogs/releases/tag/v0.14.3 · WEB
- https://github.com/gogs/gogs/security/advisories/GHSA-g2f5-gjr4-qjvm · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-52805 · ADVISORY
- https://github.com/gogs/gogs · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 24 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Jun 2026)