CVE-2026-34966
HIGH 8.3CVSS 4.0Gitea: SSRF via Migration Asset Downloads Bypasses hostmatcher — Reads Internal Files and Cloud Metadata
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.
- Published
- 5 Aug 2026
- Last modified
- 14 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-918
- Also known as
- BIT-gitea-2026-34966CVE-2026-59765GHSA-2wm4-vwp6-v7xcGO-2026-6039
- Sources
- NVDJSONOSV GHSA-2wm4-vwp6-v7xcJSONOSV GO-2026-6039JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | code.gitea.io/gitea | < 1.27.0 | 1.27.0 |
| OSV | Go | gitea.dev | < 1.27.0 | 1.27.0 |
References
- https://github.com/go-gitea/gitea · PACKAGE
- https://github.com/go-gitea/gitea/commit/b969123b7fac51c88daab5cb64e5b2f4abd53288
- https://github.com/go-gitea/gitea/security/advisories/GHSA-2wm4-vwp6-v7xc · WEB, ADVISORY
- https://www.vulncheck.com/advisories/gitea-prior-to-ssrf-via-migration-uri-fetch-bypass
- https://nvd.nist.gov/vuln/detail/CVE-2026-59765 · ADVISORY
- https://github.com/go-gitea/gitea/commit/de4b8277e9cb576f2315fb03b5ab6478b42a1d31 · WEB
- https://blog.gitea.com/gitea-1.27.0-is-released · WEB
- https://github.com/go-gitea/gitea/releases/tag/v1.27.0 · WEB
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 5 Aug 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 21 Jul 2026)