Skip to main content

Gitea CVE-2025-68938

MEDIUM
Incorrect Authorization (CWE-863)
2025-12-26 cve@mitre.org
5.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to Gitea with low-privileged account
  2. Exploit
    Invoke release deletion API endpoint
  3. Execution
    Bypass mishandled authorization check
  4. Impact
    Delete repository releases without permission

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 reaching Gitea's release-deletion API/web endpoint on an instance running a version before 1.25.2. The flaw is that Gitea does not correctly enforce who is authorized to delete releases, so a user without proper release-management permission on the target repository can perform the deletion. LIMITING FACTORS: realistically an attacker needs a valid Gitea account and API/network access to the target repository (despite the NVD vector listing PR:N, an authorization-bypass on this operation implies at least some authenticated foothold); the impact is confined to loss/removal of release data for repositories reachable by that account; and the issue is remediated in 1.25.2, so only unpatched instances are affected. No special non-default configuration is indicated by the description.

Impact

This is a medium-severity authorization flaw (CVSS 5.3) in Gitea's handling of release deletion (CWE-863, Incorrect Authorization). The real-world risk signals are mostly low-to-moderate and partly conflicting. EPSS is low at 0.38% (30th percentile), there is no CISA KEV listing (not confirmed actively exploited), and no public exploit was identified in the provided data - so this is not a widespread-exploitation emergency. However, the NVD CVSS vector contains notable inconsistencies with the vulnerability class that should be verified: the vector states PR:N (unauthenticated) and attributes the impact to availability (A:L, with C:N/I:N), yet an authorization-bypass bug on a release-deletion API almost certainly requires an authenticated account and the primary consequence is unauthorized DELETION of release data, which is an integrity impact rather than pure availability. Treat the PR:N and A:L designations with caution - they appear to overstate reachability (unauthenticated) while mischaracterizing the impact type (availability vs. integrity); verify the true privilege requirement with the vendor/PR. Net assessment: a legitimately exploitable but bounded authorization defect, best prioritized as a routine patch for internet-facing or multi-tenant Gitea instances rather than an urgent zero-day.

Exploit ScenarioDerived

An attacker holding a low-privileged but valid Gitea account (or access to a repository where they lack release-management rights) issues an API request to delete one or more releases. Because Gitea mishandles the authorization check before 1.25.2, the deletion is permitted despite insufficient permissions, destroying release artifacts/metadata. No public exploit code was identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 13, 2026

Authorization bypass in Gitea before 1.25.2 allows a user without proper release-management permission on a repository to delete releases, resulting in loss of release data. The flaw is a medium-severity incorrect authorization issue (CWE-863, CVSS 5.3) with a low EPSS score of 0.38% (30th percentile); no public exploit code or confirmed active exploitation has been identified. Exploitation requires a valid Gitea account and API/web access to the target repository, and impact is limited to release deletion for repositories reachable by that account.

RemediationAI

Upgrade to Gitea 1.25.2 or later; this is the vendor-released patch version that addresses the release-deletion authorization flaw. The vendor advisory is https://blog.gitea.com/release-of-1.25.2/ and the patched release is https://github.com/go-gitea/gitea/releases/tag/v1.25.2. If immediate upgrade is not possible, restrict access to Gitea's release-deletion API/web endpoints to trusted accounts only, review repository permissions so that only users with explicit release-management rights can delete releases, and monitor logs for unexpected release deletions; these compensating controls may disrupt legitimate release workflows and do not replace upgrading. Because the flaw is an authorization bypass rather than a remote code execution issue, no network-blocking mitigation is strictly indicated beyond limiting API exposure.

Affected Packages

go code.gitea.io/gitea fix: 1.25.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

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 Git service written in Go. The affected component is the release-management authorization logic, which fails to enforce release write/delete permissions for the release deletion operation, corresponding to CWE-863 (Incorrect Authorization). The CPE cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:* identifies all versions before 1.25.2 as in scope. The vendor fixed this in the 1.25.2 release, and the referenced PR 36002 commit includes authorization-related changes such as stricter draft-release visibility and permission checks around repository objects, indicating the patch hardens permission enforcement in related API/web handlers. The NVD vector lists PR:N, but the independent assessment treats this as requiring at least some authenticated foothold because an authorization bypass on release deletion implies a reachable account and repository context; the assessed vector is CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.

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

NVD PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 4.3 MEDIUM

Network API reachable, low complexity; an authorization-bypass on release deletion requires a low-privileged authenticated account (PR:L), and unauthorized deletion of releases is an integrity impact (I:L), not availability.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 5.4 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

DescriptionNVD

Gitea before 1.25.2 mishandles authorization for deletion of releases.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Medium
popular self-hosted Git service, common in dev teams but not ubiquitous
Data Quality
4 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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.

Affected Products (CPE)NVD

cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*

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

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