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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Gitea | Gitea | ≤ 1.26.4 | 1.27.0 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | code.gitea.io/gitea | < 1.27.0 | 1.27.0 | GHSA-2wm4-vwp6-v7xc |
| Go | gitea.dev | < 1.27.0 | 1.27.0 | GHSA-2wm4-vwp6-v7xc |
Advisories 1
- WID-SEC-2026-2678 Gitea: Mehrere Schwachstellen ermöglichen Offenlegung von Informationen BSI CERT-Bund (WID) · Aug 13, 2026
References
- Product Advisory product
- GitHub Security Advisory (GHSA-2wm4-vwp6-v7xc) vendor-advisory
- Patch Commit patch
- https://www.vulncheck.com/advisories/gitea-prior-to-ssrf-via-migration-uri-fetch-bypass third-party-advisory