Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 84%

Gitea: SSRF via HTTP Redirect in Repository Migration (CVE-2026-58418)

0
Medium
Published: 07/21/2026 (07/21/2026, 20:33:52 UTC)
Source: GCVE Database
Vendor/Project: Gitea
Product: code.gitea.io/gitea

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected software

GitHub Actionsmore threats →ai
go-gitea/gitea
pkg:github/go-gitea/gitea
Affected versions
=0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 01:47:31 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses