CVE-2026-34966

Gitea prior to 1.27.0 SSRF via Migration URI Fetch Bypass

State
Published
Severity
8.3 High
Published
Aug 5, 2026
Updated
Oct 8, 2026
Reserved
Mar 31, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.08.3 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:NVulnCheck
3.17.6 HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:NVulnCheck

Weaknesses

  • CWE-918 Server-Side Request Forgery (SSRF)

Affected Products

ProductVersions
GiteaGitea
  • 1.26.4 and earlierAffected
  • 1.27.0Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.