Vulnerability advisory
CVE-2026-52805
Gogs: Migration Redirect Bypass Leads to Internal Repository Theft
Also known as GHSA-g2f5-gjr4-qjvmGO-2026-5387
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/gogs/gogs ↗ | |
| All commits before 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 | 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 |
| Not specified | b9a0093e9cd1b2b3c7f42f9feca396dc772c4f1b |
Also listed as affected (59)
| |
Description
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.
References
- Webgithub.com/gogs/gogs/releases/tag/v0.14.3 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52805.json ↗
- Advisorygithub.com/gogs/gogs/security/advisories/GHSA-g2f5-gjr4-qjvm ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-52805 ↗
- Fixgithub.com/gogs/gogs/commit/b9a0093e9cd1b2b3c7f42f9feca396dc772c4f1b ↗
- Fixgithub.com/gogs/gogs/pull/8324 ↗