CVE-2026-58442: CWE-200 in Gitea Gitea Open Source Git Server
Repository migration SSRF via multi-answer DNS allow-list bypass
AI Analysis
Technical Summary
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.
CVE-2026-58442: CWE-200 in Gitea Gitea Open Source Git Server
Description
Repository migration SSRF via multi-answer DNS allow-list bypass
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.
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 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.