Skip to main content
EPSS 0.2%top 84%

CVE-2026-58442: CWE-200 in Gitea Gitea Open Source Git Server

0
Medium
Published: 08/13/2026 (08/13/2026, 16:44:55 UTC)
Source: GCVE Database
Vendor/Project: Gitea
Product: Gitea Open Source Git Server

Description

Repository migration SSRF via multi-answer DNS allow-list bypass

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

Goghsa
code.gitea.io/gitea
Affected versions
<1.27.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: 08/14/2026, 13:00:00 UTC

Technical Analysis

The vulnerability in Gitea's repository migration URL validation arises because the validation logic incorrectly accepts hostnames that resolve to multiple IP addresses if any one IP is allowed, even if others are internal or blocked. The initial validation and the subsequent git clone operation perform separate DNS resolutions, enabling an attacker-controlled hostname to resolve to an internal IP address at clone time. This SSRF vulnerability allows an authenticated low-privilege user to bypass restrictions and connect to internal Git services, potentially exposing internal repository contents.

Potential Impact

An authenticated low-privilege user can exploit this SSRF vulnerability to bypass hostname allow-list restrictions and cause Gitea to connect to internal-only Git services. This may lead to unauthorized access to internal repository contents by importing them into an attacker-controlled repository. The vulnerability does not impact integrity or availability but has a high confidentiality impact.

Mitigation Recommendations

A patch is available for this vulnerability in Gitea version 1.27.0 and later. Users should upgrade to version 1.27.0 or newer to remediate this issue. No additional mitigation steps are indicated by the vendor advisory.

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

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-h2x6-g7q6-344v
Osv Schema Version
1.4.0
Aliases
["CVE-2026-58442"]
Ecosystems
["Go"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a600ab79c2644c7f8fe2500

Added to database: 07/22/2026, 00:11:35 UTC

Last enriched: 08/14/2026, 13:00:00 UTC

Last updated: 09/14/2026, 22:01:35 UTC

Views: 66

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