Skip to main content

Gitea EUVDEUVD-2026-41636

| CVE-2026-27775 HIGH
Incorrect Authorization (CWE-863)
2026-07-03 Gitea GHSA-649p-mmhf-85c7
8.8
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

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

  1. Access
    Obtain per-branch maintainer-edit grant
  2. Delivery
    Craft push updating multiple refs
  3. Exploit
    Reuse cached branch permission across refs
  4. Execution
    Bypass per-ref authorization check
  5. Impact
    Gain full repository write access

Vulnerability Assessment

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

1 technique across 1 tactic: Privilege Escalation

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 attacker to already hold a legitimate per-branch write/maintainer-edit grant on at least one ref of the target Gitea repository (for example, 'allow maintainer edits' enabled on their pull request branch), and requires pushing multiple refs within a single pre-receive hook session so the cached permission is reused. It is limited to Gitea 1.25.5 (fixed in 1.26.3): an attacker with zero prior access to the repository cannot trigger it, so instances that grant no per-branch write to untrusted users, or that have upgraded, are not exploitable. No user interaction from a victim is needed (UI:N), and access is network-reachable (AV:N) via normal Git-over-HTTP/SSH push.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H, base 8.8) reflects an easy, network-reachable, low-privilege escalation with no user interaction - realistic for any Gitea instance with untrusted or semi-trusted collaborators. However, the low-privilege prerequisite is meaningful: an attacker must already possess a legitimate per-branch maintainer-edit grant (e.g., via an accepted pull request with 'allow maintainer edits'), so this is an insider/collaborator escalation, not a fully anonymous compromise. Signals are internally consistent but point to bounded real-world urgency: EPSS is only 0.20% (10th percentile), there is no CISA KEV listing and no public exploit identified, indicating no evidence of active or widespread exploitation. No SSVC decision record is provided in the input. Net: a genuine, high-severity authorization bug worth prompt patching on multi-tenant or public-facing Gitea instances, but not an emergency drop-everything item for tightly controlled single-tenant deployments. Note the C:H/A:H components are somewhat generous - the primary demonstrated impact is integrity (write access); verify confidentiality/availability relevance against your branch-protection model.

Exploit ScenarioDerived

A semi-trusted collaborator opens a pull request and is granted per-branch maintainer-edit rights on a single feature branch. In one Git push (a single pre-receive hook session) they include updates to additional refs - such as a protected main branch or release tag - and Gitea reuses the cached branch-level approval to authorize all of them, giving the attacker full repository write. No public exploit code has been identified, but the low complexity (AC:L) makes the technique straightforward to reproduce once the caching behavior is understood.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
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 06, 2026

Privilege escalation in Gitea 1.25.5 lets a user holding a per-branch maintainer-edit grant reuse that write permission against other refs and obtain full repository write access. The flaw stems from a branch-specific permission result being cached and incorrectly reused across multiple refs within a single pre-receive hook session. It is an authenticated authorization-bypass (CWE-863) fixed in Gitea 1.26.3; no public exploit has been identified and EPSS exploitation probability is low (0.20%).

RemediationAI

Vendor-released patch: upgrade to Gitea 1.26.3 (or later, e.g. 1.26.4) which corrects the per-ref permission recomputation; see the release notes at https://blog.gitea.com/release-of-1.26.3-and-1.26.4/ and the fix in https://github.com/go-gitea/gitea/pull/38151. Review the advisory at https://github.com/go-gitea/gitea/security/advisories/GHSA-649p-mmhf-85c7 before deploying. If you cannot patch immediately, reduce exposure by not granting 'allow maintainer edits' on pull requests from untrusted contributors and by tightening branch-protection so fewer users hold per-branch write grants - the trade-off is reduced collaboration convenience for external contributors. Avoid exposing the instance to anonymous or low-trust users who can obtain any branch write grant, and audit recent pushes to protected branches for anomalous ref updates; note these are containment measures only and do not close the underlying caching flaw.

Affected VersionsENISA

Gitea Open Source Git Server 1.25.5

Affected Packages

go code.gitea.io/gitea fix: 1.26.3
euvd gitea_open_source_git_server no fix

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, offering repository hosting, pull requests, and fine-grained branch protection. When a Git push is received, Gitea runs a pre-receive hook that evaluates write permission for each ref (branch/tag) being updated. In 1.25.5 the result of a write-permission check - specifically a maintainer/'allow edits' grant scoped to one branch - is cached and applied to the other refs processed in the same hook session, rather than being recomputed per ref. This is a classic CWE-863 (Incorrect Authorization) failure: a decision valid for one object is trusted for a different object, collapsing per-branch access boundaries into repository-wide write. The single affected product is Gitea Open Source Git Server (cpe:2.3:a:gitea:gitea_open_source_git_server), and the root cause was corrected in PR go-gitea/gitea#38151.

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 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.6 HIGH

Requires an existing per-branch write grant (PR:L) over the network with no interaction (AV:N/AC:L/UI:N); impact is primarily repository-write integrity (I:H) with limited confidentiality/availability effect (C:L/A:L).

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

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

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

Lifecycle Timeline

2
CVSS changed
Jul 06, 2026 - 16:22 NVD
8.8 (HIGH)
CVE Published
Jul 03, 2026 - 20:19 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Gitea 1.25.5 caches a branch-specific write-permission result across multiple refs in one pre-receive hook session, allowing a per-branch maintainer-edit grant to be reused for other refs and escalate to full repository write access.

Executive ViewAI

Why It Matters

Gitea versions through 1.25.5 contain an authentication-required privilege escalation flaw (CVSS 8.8) allowing users with limited per-branch write permissions to obtain full repository access by exploiting permission caching during repository operations. This exposes organizations to unauthorized code commits, policy violations, and supply-chain risk through potential repository hijacking.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Medium
popular self-hosted Git service, sizable but not ubiquitous footprint
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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
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
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
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

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