Gitea: SSRF via HTTP Redirect in Repository Migration (CVE-2026-58418)
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.
AI Analysis
Technical Summary
Gitea versions before 1.26.4 validate the initial URL provided to the repository migration API to prevent access to internal IP addresses. However, if the initial URL points to an attacker-controlled server that issues an HTTP 302 redirect to an internal address (e.g., 127.0.0.1), Gitea follows the redirect without performing a second validation. This flaw allows a low-privilege user to exploit the migration endpoint to access internal services behind the Gitea server, bypassing IP restrictions and potentially exfiltrating sensitive data from internal-only services.
Potential Impact
An attacker with a regular user account on the Gitea instance can exploit this vulnerability to access internal services that are not normally reachable from outside the host. This can lead to unauthorized disclosure of sensitive internal data. The vulnerability does not require administrative privileges and does not impact integrity or availability directly but results in confidentiality loss.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. 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.
Gitea: SSRF via HTTP Redirect in Repository Migration (CVE-2026-58418)
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.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Gitea versions before 1.26.4 validate the initial URL provided to the repository migration API to prevent access to internal IP addresses. However, if the initial URL points to an attacker-controlled server that issues an HTTP 302 redirect to an internal address (e.g., 127.0.0.1), Gitea follows the redirect without performing a second validation. This flaw allows a low-privilege user to exploit the migration endpoint to access internal services behind the Gitea server, bypassing IP restrictions and potentially exfiltrating sensitive data from internal-only services.
Potential Impact
An attacker with a regular user account on the Gitea instance can exploit this vulnerability to access internal services that are not normally reachable from outside the host. This can lead to unauthorized disclosure of sensitive internal data. The vulnerability does not require administrative privileges and does not impact integrity or availability directly but results in confidentiality loss.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. 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.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Gitea
- Date Reserved
- 2026-06-30T18:57:20.613Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Gcve Source
- db.gcve.eu
Threat ID: 6a483c9d27e9c79719d7f5ec
Added to database: 07/03/2026, 22:50:05 UTC
Last enriched: 07/22/2026, 01:47:31 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 49
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.