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.
Severity (CVSS)
| Base score | 8.3 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-918 — Server-Side Request Forgery (SSRF)
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea | 0 to <=1.26.4; 1.27.0 |
References
- https://github.com/go-gitea/gitea (product)
- https://github.com/go-gitea/gitea/security/advisories/GHSA-2wm4-vwp6-v7xc (vendor-advisory)
- https://github.com/go-gitea/gitea/commit/b969123b7fac51c88daab5cb64e5b2f4abd53288 (patch)
- https://www.vulncheck.com/advisories/gitea-prior-to-ssrf-via-migration-uri-fetch-bypass (third-party-advisory)
Generated from the official CVE List on 06 Aug 2026 07:06 UTC.