Gitea
CVE-2025-68938
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Gitea with low-privileged account
-
ExploitInvoke release deletion API endpoint
-
ExecutionBypass mishandled authorization check
-
ImpactDelete 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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.
Primary rating from NVD.
CVSS VectorNVD
DescriptionNVD
Gitea before 1.25.2 mishandles authorization for deletion of releases.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)NVD
Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi
Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r
Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea
Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us
Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any
Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by
Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec
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
Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica
Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran
NVD
CVE.org
EPSS
GitHub
Exploit-DB