CVE-2026-58418

SSRF via HTTP Redirect in Repository Migration

Published Jul 3, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
SSRF via HTTP Redirect in Repository Migration

Analysis

AI-generated

Technical impact

The vulnerability is a Server‑Side Request Forgery identified as CWE‑918, triggered when a repository migration source supplies an HTTP redirect that the Gitea server follows without validation. The result is that the Gitea instance may issue HTTP requests to any URL specified in the redirect, allowing an attacker to direct the Gitea process to reach internal or external network resources. The likely attack vector is a malicious redirect returned by the chosen migration source.

Affected Systems

All deployments of the Gitea Open Source Git Server that include the repository migration feature and run a version that does not include the patch remain vulnerable. A patched release has been made available (as referenced in the release notes) that removes the unguarded redirect handling.

Risk and Exploitability

The CVSS score of 6.5 reflects a moderate severity, while an EPSS score of less than 1% indicates a low probability of real‑world exploitation. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires that an attacker can trigger a repository migration request, which generally presupposes the ability to submit migration requests via the web interface or an API.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Gitea server to a version that includes the patch, as indicated in the release notes.
  • If the migration feature is not required, disable or remove the repository migration functionality to eliminate the attack surface.
  • Configure outbound network controls or firewall rules to restrict HTTP requests originating from the Gitea process.

Generated by OpenCVE AI on August 3, 2026 at 05:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-rqhx-647v-wx32 Gitea: SSRF via HTTP Redirect in Repository Migration
History
Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description SSRF via HTTP Redirect in Repository Migration
Title SSRF via HTTP Redirect in Repository Migration
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Jul 6, 2026, 3:14 PM
Reserved
Jun 30, 2026, 6:57 PM
Status
Deferred
Published
Jul 3, 2026, 9:17 PM
Modified
Oct 25, 2026, 3:10 PM