CVE-2026-59765: CWE-918 in Gitea Gitea Open Source Git Server
SSRF via Migration Asset Downloads Bypasses hostmatcher — Reads Internal Files and Cloud Metadata
AI Analysis
Technical Summary
CVE-2026-59765 is an SSRF vulnerability in Gitea prior to version 1.27.0. The flaw arises because certain migration and OAuth avatar update functions perform HTTP GET requests without host-based filtering, allowing attackers with migration permissions or control over OAuth sources to bypass SSRF protections. This enables access to internal network resources, cloud metadata services, and local files through the file:// scheme, potentially exposing sensitive information such as cloud instance metadata and secret configuration files. The vulnerability has a moderate severity rating and a CVSS 4.0 vector indicating network attack vector, low attack complexity, and partial privileges required. A patch is available to fix this issue.
Potential Impact
Exploitation of this vulnerability can lead to unauthorized reading of internal network services, cloud metadata endpoints, and local files on the Gitea server. This may result in disclosure of sensitive data including cloud instance metadata and local configuration files containing secrets. The impact is limited by the requirement that the attacker must have migration permissions or control over admin-configured OAuth sources. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available for Gitea version 1.27.0 and later that addresses this SSRF vulnerability by implementing proper host-based filtering and validation of HTTP requests in the affected code paths. Users should upgrade to version 1.27.0 or later to remediate this issue. No additional mitigations are specified by the vendor advisory.
CVE-2026-59765: CWE-918 in Gitea Gitea Open Source Git Server
Description
SSRF via Migration Asset Downloads Bypasses hostmatcher — Reads Internal Files and Cloud Metadata
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59765 is an SSRF vulnerability in Gitea prior to version 1.27.0. The flaw arises because certain migration and OAuth avatar update functions perform HTTP GET requests without host-based filtering, allowing attackers with migration permissions or control over OAuth sources to bypass SSRF protections. This enables access to internal network resources, cloud metadata services, and local files through the file:// scheme, potentially exposing sensitive information such as cloud instance metadata and secret configuration files. The vulnerability has a moderate severity rating and a CVSS 4.0 vector indicating network attack vector, low attack complexity, and partial privileges required. A patch is available to fix this issue.
Potential Impact
Exploitation of this vulnerability can lead to unauthorized reading of internal network services, cloud metadata endpoints, and local files on the Gitea server. This may result in disclosure of sensitive data including cloud instance metadata and local configuration files containing secrets. The impact is limited by the requirement that the attacker must have migration permissions or control over admin-configured OAuth sources. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available for Gitea version 1.27.0 and later that addresses this SSRF vulnerability by implementing proper host-based filtering and validation of HTTP requests in the affected code paths. Users should upgrade to version 1.27.0 or later to remediate this issue. No additional mitigations are specified by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-2wm4-vwp6-v7xc
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-59765"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a600aa29c2644c7f8fdfcb0
Added to database: 07/22/2026, 00:11:14 UTC
Last enriched: 08/14/2026, 13:00:50 UTC
Last updated: 09/04/2026, 10:52:10 UTC
Views: 75
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.