Skip to main content

Gitea EUVDEUVD-2026-41630

| CVE-2026-26292 CRITICAL
Improper Access Control (CWE-284)
2026-07-03 Gitea GHSA-rc56-rj3f-xggf
9.8
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

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

  1. Access
    Authenticate and gain mirror-config access
  2. Delivery
    Configure LFS mirror to restricted endpoint
  3. Exploit
    LFS client runs without migration transport
  4. Execution
    Request bypasses allowlist/SSRF protections
  5. Impact
    Reach internal or blocked resource

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

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

Exploitation Conditions

Exploitation requires the ability to configure a repository push mirror or pull/sync mirror in Gitea and to control the associated LFS endpoint, so that the vulnerable code paths (runPushSync in mirror_push.go, runSync in mirror_pull.go) are exercised; the flaw only manifests for Git LFS push and sync-mirror requests, not for the general migration HTTP transport which was already protected. Limiting factors: the target instance must be running a version before 1.25.5, mirroring/migration functionality must be enabled, and the actor must reach the mirror-configuration workflow - which in default deployments is an authenticated, repository-privileged action rather than fully anonymous access, tempering the published PR:N assumption.

Impact

The signals conflict and warrant caution. The published CVSS 3.1 vector is 9.8 (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H), but the vulnerability is an access-control/transport-restriction bypass affecting LFS traffic during mirror operations - configuring a push or sync mirror in Gitea normally requires an authenticated user with repository admin rights, so PR:N appears optimistic and the C:H/I:H/A:H 'total' impact likely reflects SSRF-style reachability of internal resources rather than direct remote code execution. SSVC aligns partially: Exploitation=none (no observed activity), Automatable=yes, Technical Impact=total, and EPSS is low at 0.17% (7th percentile), indicating no evidence of widespread exploitation. This is a real defense-in-depth regression worth patching - especially for instances that rely on migration allowlists to prevent SSRF into internal networks - but the 9.8 rating probably overstates real-world unauthenticated risk; the practical prerequisite of mirror-configuration access should be verified against your deployment.

Exploit ScenarioDerived

An authenticated user with rights to set up a repository push or sync mirror points the LFS endpoint at an internal address that the migration transport allowlist would normally block. Because the LFS client ran without the migration transport, Gitea issues the LFS request to that internal target on the attacker's behalf, enabling SSRF-style reach into the server's internal network. No public exploit code has been identified, and the network attack complexity is low.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 22, 2026

Migration transport protections in Gitea are bypassed for Git LFS operations, affecting all self-hosted instances before version 1.25.5. Because LFS push and sync-mirror requests instantiated their client with a nil HTTP transport (lfs.NewClient(endpoint, nil)) instead of the hardened migration transport, LFS traffic escaped the allowlist/SSRF restrictions the migration transport enforces, letting a user who can configure a repository mirror direct LFS requests to otherwise-blocked destinations. There is no public exploit identified at time of analysis and EPSS is low (0.17%), but SSVC rates technical impact as total and automatable, and a vendor patch is available.

RemediationAI

Vendor-released patch: upgrade to Gitea 1.25.5 or later (https://github.com/go-gitea/gitea/releases/tag/v1.25.5), which routes LFS push and sync-mirror requests through the migration HTTP transport via PRs https://github.com/go-gitea/gitea/pull/36665 and https://github.com/go-gitea/gitea/pull/36691. If immediate upgrade is not possible, reduce exposure by restricting who can create or configure repository mirrors (limit mirror/migration privileges to trusted admins) and, at the network layer, place the Gitea server behind egress firewall rules that deny outbound connections to internal/private ranges and cloud metadata endpoints (e.g. 169.254.169.254, RFC1918 ranges) so bypassed LFS requests cannot reach sensitive internal targets; the trade-off is that legitimate mirrors to internal Git/LFS hosts on those ranges will also be blocked. Review the ALLOWED_HOST_LIST / BLOCKED_HOST_LIST migration settings, but be aware that pre-patch these do not fully cover the LFS path, so network egress control is the more reliable stopgap.

Affected VersionsENISA

Gitea Open Source Git Server 0 <1.25.5

Affected Packages

go code.gitea.io/gitea fix: 1.25.5
euvd gitea_open_source_git_server fix: 1.25.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 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

Gitea is a self-hosted, lightweight Git service written in Go (cpe:2.3:a:gitea:gitea_open_source_git_server). It ships a dedicated 'migration HTTP transport' (services/migrations.NewMigrationHTTPTransport) whose purpose is to constrain outbound requests made on behalf of user-configured migrations/mirrors - for example enforcing allowed/blocked host and private-address restrictions that mitigate server-side request forgery. The root cause is CWE-284 (Improper Access Control): in services/mirror/mirror_pull.go (runSync) and services/mirror/mirror_push.go (runPushSync), the Git LFS client was created with a nil transport rather than the migration transport, so LFS object push and sync-mirror fetches did not inherit those protections. The fix (PRs #36665 and #36691) simply passes migrations.NewMigrationHTTPTransport() into lfs.NewClient for both code paths.

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 (Gitea) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.1 HIGH

Configuring a mirror requires an authenticated repo-privileged user (PR:L); the bypass primarily enables SSRF-style reach to blocked hosts (C:H), with limited integrity and no clear availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/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:N/SI:N/SA:N
SUSE CRITICAL

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
CVE Published
Jul 03, 2026 - 20:19 cve.org
CRITICAL 9.8
CVE Published
Jul 03, 2026 - 20:19 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Gitea versions before 1.25.5 do not use the migration HTTP transport for LFS push and sync mirror operations, bypassing the configured migration transport protections for those LFS requests.

Executive ViewAI

Why It Matters

Gitea self-hosted deployments before version 1.25.5 are vulnerable to a bypass of repository migration security controls, enabling Git LFS operations to reach network destinations that would normally be blocked by allowlist policies. Organizations running Gitea with users who manage repository mirrors face direct risk of data exfiltration or unauthorized access to internal systems. A vendor patch is available and requires immediate prioritization.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
popular self-hosted Git server, common among developers but not ubiquitous
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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-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

CVE-2020-13246 HIGH POC
7.5 May 20

An issue was discovered in Gitea through 1.11.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected
openSUSE Leap 15.6 Affected

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