Vulnerability advisory
CVE-2026-34966
Gitea prior to 1.27.0 SSRF via Migration URI Fetch Bypass
Also known as BIT-gitea-2026-34966CVE-2026-59765GHSA-2wm4-vwp6-v7xcGO-2026-6039
- CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/go-gitea/gitea ↗ | |
| All commits before 73e0e442988704487b285d59f7494a85229e41e2 | 73e0e442988704487b285d59f7494a85229e41e2 |
| Not specified | b969123b7fac51c88daab5cb64e5b2f4abd53288 |
Also listed as affected (38)
| |
Description
Gitea prior to 1.27.0 contains a server-side request forgery vulnerability that allows authenticated attackers to bypass SSRF protections by exploiting HTTP fetch operations in migration and OAuth avatar code paths that use Go's default http.Get without a custom DialContext. Attackers can supply arbitrary URLs through release asset download URLs, pull-request patch URLs, or OAuth avatar endpoints to reach internal services, cloud instance-metadata endpoints, or read local files such as the application configuration containing database credentials and signing secrets, with exfiltrated content persisted as migration release assets for later retrieval.
References
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34966.json ↗
- Advisorygithub.com/go-gitea/gitea/security/advisories/GHSA-2wm4-vwp6-v7xc ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-34966 ↗
- Advisorywww.vulncheck.com/advisories/gitea-prior-to-ssrf-via-migration-uri-fetch-bypass ↗
- Fixgithub.com/go-gitea/gitea/commit/b969123b7fac51c88daab5cb64e5b2f4abd53288 ↗
- Packagegithub.com/go-gitea/gitea ↗