Description
SSRF via Migration Asset Downloads Bypasses hostmatcher — Reads Internal Files and Cloud Metadata
Published: 2026-08-13
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A Server Side Request Forgery flaw in the Migration Asset Downloads feature of the Gitea Open Source Git Server allows an attacker to supply arbitrary URLs. Because the hostmatcher validation is bypassed, Gitea can reach internal network resources and cloud metadata endpoints, exposing sensitive files, configuration data, and credentials. This can lead to confidential data disclosure and, if secrets are obtained, enable further compromise.

Affected Systems

The vulnerability exists in all Gitea releases that support migration asset downloads prior to the fix shipped in version 1.27.0. Any deployment of those earlier releases exposed to external users or integration points is affected.

Risk and Exploitability

The CVSS score is not publicly listed, but the ability to read internal files through SSRF indicates a high severity risk. EPSS is not available and the issue is not in the CISA KEV catalog. Based on the description, the attacker would need to initiate a migration asset download request with a crafted URL, typically via an API or webhook that has permission to trigger migrations. Such a request would allow the server to retrieve arbitrary internal resources.

Generated by OpenCVE AI on August 13, 2026 at 18:57 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Gitea to version 1.27.0 or later, which patches the SSRF flaw.
  • Restrict or disable the migration asset download feature for untrusted users, or limit its access to privileged roles only.
  • Configure strict host validation or block internal domains on the hostmatcher, even though the bug bypasses it, to reduce the attack surface.
  • Monitor logs for unexpected migration download requests and block traffic from unknown IP addresses at the network or application level.

Generated by OpenCVE AI on August 13, 2026 at 18:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-2wm4-vwp6-v7xc Gitea: SSRF via Migration Asset Downloads Bypasses hostmatcher — Reads Internal Files and Cloud Metadata
History

Thu, 13 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Thu, 13 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
Description SSRF via Migration Asset Downloads Bypasses hostmatcher — Reads Internal Files and Cloud Metadata
Title SSRF via Migration Asset Downloads Bypasses hostmatcher — Reads Internal Files and Cloud Metadata
Weaknesses CWE-918
References

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-08-13T16:44:59.148Z

Reserved: 2026-07-08T09:19:07.995Z

Link: CVE-2026-59765

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-13T17:17:30.493

Modified: 2026-08-13T17:17:30.493

Link: CVE-2026-59765

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T19:00:12Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)