CVE-2026-58418: Gitea · SSRF via HTTP Redirect in Repository Migration
Affects code.gitea.io/giteaSource GCVE Database
Not known to be exploited · CVSS 6.5 Medium.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubgo-gitea/giteapkg:github/go-gitea/giteaOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, restrict user access to the repository migration endpoint to trusted users only and monitor for suspicious migration requests. Network-level controls to prevent Gitea from accessing internal-only IP addresses via redirects may help mitigate risk. Avoid using untrusted URLs for repository migration.
Description
Gitea 1.25.4 and earlier versions prior to 1.26.4 contain a server-side request forgery (SSRF) vulnerability in the repository migration endpoint. The vulnerability arises because Gitea validates the initial migration URL to block internal addresses but does not re-validate URLs after following HTTP 302 redirects. This allows a low-privilege user to cause Gitea to access internal services by redirecting from an attacker-controlled server to internal IP addresses, effectively using Gitea as a proxy to access otherwise inaccessible internal resources.
References
- github.com/go-gitea/gitea/security/advisories/GHSA-rqhx-647v-wx32 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-58418 (opens in a new tab)
- github.com/go-gitea/gitea/pull/38108 (opens in a new tab)
- github.com/go-gitea/gitea/commit/9e84deb969aff5c1115c2984e41250f28c78451f (opens in a new tab)
- blog.gitea.com/release-of-1.26.3-and-1.26.4 (opens in a new tab)
- github.com/go-gitea/gitea (opens in a new tab)
- github.com/go-gitea/gitea/releases/tag/v1.26.4 (opens in a new tab)