Description
Gitea prior to 1.27.0 contains a server-side request forgery vulnerability that allows authenticated attackers to bypass SSRF protections by exploiting HTTP fetch operations in migration and OAuth avatar code paths that use Go's default http.Get without a custom DialContext. Attackers can supply arbitrary URLs through release asset download URLs, pull-request patch URLs, or OAuth avatar endpoints to reach internal services, cloud instance-metadata endpoints, or read local files such as the application configuration containing database credentials and signing secrets, with exfiltrated content persisted as migration release assets for later retrieval.
Published: 2026-08-05
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Gitea versions before 1.27.0 harbor a server‑side request forgery flaw that lets an authenticated user supply arbitrary URLs to HTTP fetch functions in migration and OAuth avatar workflows. The URLs are passed to Go’s default http.Get, which uses the unmodified default DialContext, allowing the application to reach internal services, instance‑metadata endpoints, or even read local files such as the application configuration that contains database credentials and signing secrets. The data fetched is stored as migration release assets, enabling the attacker to later retrieve the exfiltrated content. Consequently, the vulnerability can compromise confidentiality of internal resources and credentials, and may facilitate further lateral movement.

Affected Systems

The affected system is the Gitea code‑hosting platform, with all releases prior to 1.27.0 susceptible to the flaw. This includes any deployment using Gitea versions earlier than 1.27.0, regardless of hosting environment. The vulnerability is present on all operating systems and container images where these older releases are deployed.

Risk and Exploitability

The CVSS score of 8.3 indicates a high severity vulnerability. The EPSS score is currently unavailable, but the lack of a KEV listing and the requirement for an authenticated user suggest that exploitation is more likely in environments where privileged or developer accounts exist. Attackers can exploit the flaw by uploading migration or OAuth avatar URLs that point to internal endpoints; once the request is made the application returns the response content, which is then persisted for later download. As the permits reading sensitive configuration files, the risk is primarily in confidentiality breach, with possible lateral movement if credentials are compromised.

Generated by OpenCVE AI on August 5, 2026 at 21:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.27.0 or later to eliminate the SSRF flaw.
  • Ensure that only trusted users have migration or OAuth avatar functionalities enabled to reduce risk from authenticated exploitation.
  • Implement network segmentation or firewall policies to block outbound requests from the application server to internal resources, mitigating potential SSRF impact.

Generated by OpenCVE AI on August 5, 2026 at 21:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:*

Fri, 07 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Thu, 06 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 05 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

Wed, 05 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
Description Gitea prior to 1.27.0 contains a server-side request forgery vulnerability that allows authenticated attackers to bypass SSRF protections by exploiting HTTP fetch operations in migration and OAuth avatar code paths that use Go's default http.Get without a custom DialContext. Attackers can supply arbitrary URLs through release asset download URLs, pull-request patch URLs, or OAuth avatar endpoints to reach internal services, cloud instance-metadata endpoints, or read local files such as the application configuration containing database credentials and signing secrets, with exfiltrated content persisted as migration release assets for later retrieval.
Title Gitea prior to 1.27.0 SSRF via Migration URI Fetch Bypass
Weaknesses CWE-918
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T16:49:46.740Z

Reserved: 2026-03-31T17:58:43.754Z

Link: CVE-2026-34966

cve-icon Vulnrichment

Updated: 2026-08-06T14:41:09.003Z

cve-icon NVD

Status : Received

Published: 2026-08-05T21:16:58.187

Modified: 2026-08-06T16:16:42.633

Link: CVE-2026-34966

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-05T20:28:57Z

Links: CVE-2026-34966 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T22:00:14Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)