# CVE-2026-52805: Gogs: Migration Redirect Bypass Leads to Internal Repository Theft

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-23T17:01:35.000Z
- Modified: 2026-11-03T23:17:47.530Z
- Also known as: GHSA-g2f5-gjr4-qjvm, GO-2026-5387
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.3
- gogs.io/gogs (Go): before 0.14.3; all versions

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-g2f5-gjr4-qjvm> (exploit, advisory, web)
- <https://github.com/gogs/gogs/pull/8324> (web)
- <https://github.com/gogs/gogs/commit/b9a0093e9cd1b2b3c7f42f9feca396dc772c4f1b> (web)
- <https://github.com/gogs/gogs/releases/tag/v0.14.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52805> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2026-52805](https://www.cve.org/CVERecord?id=CVE-2026-52805), CVE Terms of Use, modified 2026-11-03
- GitHub Advisory Database: [GHSA-g2f5-gjr4-qjvm](https://github.com/advisories/GHSA-g2f5-gjr4-qjvm), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5387](https://pkg.go.dev/vuln/GO-2026-5387), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-52805](https://nvd.nist.gov/vuln/detail/CVE-2026-52805), Public domain, modified 2026-11-03

---

Page: https://cve.day/CVE-2026-52805 · Whole record: https://cve.day/CVE-2026-52805.json · Rebuilt by cve.day 2026-11-25T22:59:25.745Z
