Skip to main content

Gitea CVE-2026-34966

| EUVDEUVD-2026-53617 HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-08-05 VulnCheck GHSA-685p-fm6j-c445
8.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to target Gitea instance
  2. Delivery
    Stand up malicious Gitea source with poisoned asset URLs
  3. Exploit
    Trigger migration API against target
  4. Execution
    Target server fetches URL via unprotected http.Get
  5. Persist
    Internal service or local file content returned
  6. Impact
    Exfiltrated data persisted as migration release asset

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation via the migration path requires an authenticated Gitea account with sufficient privileges to invoke the repository migration API endpoint; the attacker must also control a Gitea-compatible source instance that serves malicious asset download URLs or PR patch URLs pointing to internal services or local paths. The file:// local read path is enabled by uri.Open()'s explicit os.Open() branch and requires no additional configuration - it is active in all default Gitea deployments prior to 1.27.0. The OAuth avatar path requires the target Gitea instance to have OAuth authentication configured and enabled. Exploitation is strictly limited to authenticated users; unauthenticated access is not sufficient for any of the three vectors. The provided CVSS 4.0 vector designates PR:H (high privileges), but defenders should verify whether their Gitea configuration restricts migration initiation to administrators only - in permissive default deployments, any registered user may trigger migrations, lowering the effective privilege barrier.

Impact

The CVSS 4.0 score of 8.3 with vector AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N reflects high confidentiality impact on both the vulnerable Gitea system and subsequent systems - consistent with the ability to read application secrets such as database credentials and JWT signing keys, enabling downstream compromise. The PR:H designation (high privileges required) in the provided vector is notable: the description states only 'authenticated attackers,' and Gitea migration is available to non-admin users in many default configurations - security teams should verify the minimum privilege level enforced in their deployment, as real-world exploitability may be broader than PR:H implies. EPSS data was not provided; however, the combination of a public PoC embedded in the GHSA advisory, network-accessible attack vector, and high-value exfiltration targets (cloud IMDS, app.ini credentials) elevates real-world urgency. The exfiltration persistence mechanism - attacker-retrievable content stored as migration release assets - reflects deliberate exploit design rather than opportunistic discovery. The vulnerability is not in CISA KEV, so confirmed active exploitation is absent, but the accessible PoC and attractive targets make this a credible near-term exploitation scenario for internet-exposed Gitea instances.

Exploit ScenarioDerived

An authenticated Gitea user sets up an attacker-controlled Gitea instance and creates a repository release whose asset download URL points to file:///etc/gitea/app.ini or http://169.254.169.254/latest/meta-data/iam/security-credentials/role. When migration is triggered targeting that repository, the victim Gitea server fetches those URLs server-side via unprotected http.Get(), and the retrieved content is persisted as a migration release asset that the attacker can subsequently retrieve. A public proof-of-concept demonstrating this full chain is included in GHSA-2wm4-vwp6-v7xc.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

SSRF protection bypass in Gitea prior to 1.27.0 exposes internal services, cloud instance-metadata endpoints (e.g., AWS IMDSv1 at 169.254.169.254), and local files - including the application configuration containing database credentials and signing secrets - to authenticated attackers. Three HTTP fetch code paths in the migration and OAuth avatar subsystems use Go's raw http.Get() rather than the hardened hostmatcher.NewDialContext() transport used elsewhere, completely circumventing Gitea's built-in SSRF defenses. A publicly available proof-of-concept is included in the GHSA advisory; no confirmed active exploitation (CISA KEV) has been identified at time of analysis.

RemediationAI

Upgrade Gitea to version 1.27.0 or later, which replaces the unprotected http.Get() calls with the hostmatcher-backed transport already used for migration clones and webhooks; the patch commit is b969123b7fac51c88daab5cb64e5b2f4abd53288 (https://github.com/go-gitea/gitea/commit/b969123b7fac51c88daab5cb64e5b2f4abd53288). If immediate upgrade is not feasible, set DISABLE_MIGRATIONS = true in the [repository] section of app.ini to remove the migration code paths entirely, at the cost of disabling all repository migration functionality. Disabling OAuth login (if not operationally required) eliminates the avatar fetch vector. Deploy host-level egress filtering on the Gitea server to block RFC 1918 ranges and the link-local range 169.254.0.0/16; note this does not address the file:// local file read path and is not a substitute for patching. Advisory reference: https://github.com/go-gitea/gitea/security/advisories/GHSA-2wm4-vwp6-v7xc.

Affected VersionsENISA

Gitea patch: 1.27.0
Gitea 0 ≤1.26.4

Affected Packages

go code.gitea.io/gitea fix: 1.27.0
go gitea.dev fix: 1.27.0
euvd gitea no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability (CWE-918, Server-Side Request Forgery) stems from an inconsistency in Gitea's Go codebase: while migration clone and webhook operations correctly use a custom DialContext via hostmatcher.NewDialContext() that validates resolved IPs against an allow/block list, three separate code paths fall back to Go's net/http.DefaultClient, which performs no such validation. Specifically, modules/uri/uri.go (line 32) uses http.Get() for HTTP/HTTPS URIs and os.Open() for file:// URIs; this function is called from services/migrations/gitea_uploader.go at line 340 (release asset download) and line 586 (PR patch fetch), and from services/migrations/dump.go at lines 312 and 453. Additionally, routers/web/auth/oauth.go (line 306) uses http.Get() to fetch OAuth avatar URLs without any hostmatcher filtering. The explicit file:// scheme handler in uri.Open() further enables arbitrary local file reads beyond network-based SSRF. Affected products are all Gitea releases from 0 through 1.26.4 (CPE: cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*).

Know when Gitea gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.3 HIGH
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
vuln.today AI 8.5 HIGH

Any authenticated user can trigger migration in default configs; file:// read and internal HTTP access constitute scope change with high confidentiality impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
SUSE HIGH
Red Hat 7.6 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Gitea versions prior to 1.27.0 contain an SSRF bypass that allows authenticated users to extract database credentials and signing secrets from affected servers. Any organization running Gitea repositories faces potential credential compromise and unauthorized infrastructure access if the vulnerability is exploited by an insider or compromised account holder. Immediate patching to version 1.27.0 or later is critical to prevent credential theft and system compromise.

Business Impact: High
Compensating Controls

Vendor-released patch: Gitea 1.27.0 or later.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Medium
self-hosted git forge, popular in dev and enterprise but not ubiquitous
Social Media
2
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

More in Gitea

View all
CVE-2026-60004 CRITICAL POC
9.8

Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi

CVE-2026-27771 HIGH POC
8.2 Jul 03

Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r

CVE-2022-30781 HIGH POC
7.5 May 16

Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp

CVE-2020-14144 HIGH POC
7.2 Oct 16

The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir

CVE-2024-6886 CRITICAL POC
10.0 Aug 06

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea

CVE-2026-72867 CRITICAL POC
9.9 Aug 10

Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us

CVE-2026-20896 CRITICAL POC
9.8 Jul 03

Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any

CVE-2026-59774 CRITICAL POC
9.8

Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by

CVE-2026-58053 CRITICAL POC
9.4 Jun 28

Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec

CVE-2019-11229 HIGH POC
8.8 Apr 15

models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to rem

CVE-2026-57894 HIGH POC
8.5 Jul 21

Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica

CVE-2026-24791 HIGH POC
8.1 Jun 17

Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran

Vendor StatusVendor

SUSE

Severity: Important

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy