CVE-2026-58508
Received Received - Intake

SSRF Vulnerabilities in Gitea Migration/Mirror

Vulnerability report for CVE-2026-58508, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-13

Last updated on: 2026-08-13

Assigner: Gitea Limited

Description

Two SSRF vulnerabilities in Gitea migration/mirror (DNS rebinding + missing re-validation)

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-13
Last Modified
2026-08-13
Generated
2026-08-13
AI Q&A
2026-08-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
gitea gitea *
go-gitea gitea to 1.26.4 (inc)
go-gitea gitea to 1.27.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-284 The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves two Server-Side Request Forgery (SSRF) flaws in Gitea's migration and mirroring features. The first is a DNS rebinding issue where DNS resolution happens at check time but the git subprocess re-resolves DNS independently, allowing attackers to bypass checks by changing IPs. The second flaw allows mirror sync URLs to remain unvalidated during sync cycles, enabling persistent SSRF attacks if DNS rebinding occurs later.

Detection Guidance

To detect this vulnerability, check if your Gitea instance is running a version prior to 1.27.0. Use commands like 'gitea --version' or inspect the version in the web interface. Monitor network logs for unusual DNS rebinding attempts or unexpected outbound connections to internal IPs from Gitea processes.

Impact Analysis

An attacker could exploit these flaws to access internal systems or sensitive data by tricking Gitea into making unauthorized requests to internal IPs. This could lead to data breaches, unauthorized access to repositories, or further network compromise if internal services are exposed.

Compliance Impact

This vulnerability could lead to unauthorized data access or exfiltration, violating GDPR's data protection requirements or HIPAA's safeguards for protected health information. Organizations using affected Gitea versions may face compliance violations, fines, or legal consequences if exploited.

Mitigation Strategies

Upgrade Gitea to version 1.27.0 or later immediately. Disable migration and mirroring features if not needed. Review and restrict network access for Gitea processes. Monitor DNS logs for rebinding attempts and block suspicious outbound connections to internal networks.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-58508. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart