Skip to main content

Gitea EUVDEUVD-2026-41626

| CVE-2026-25782 MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-07-03 Gitea GHSA-qm72-8prh-g92x
5.3
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to Gitea with valid credentials
  2. Delivery
    Enumerate tracked-time entry IDs via API list endpoint
  3. Exploit
    Identify target time entry ID from a different issue
  4. Execution
    Send DELETE request with mismatched issue URL and target time ID
  5. Impact
    Gitea deletes the unscoped time entry, returning success

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Exploitation requires an authenticated Gitea user account - anonymous access is insufficient. The time-tracking feature must be enabled in the Gitea instance (it is enabled by default). The attacker must know or be able to enumerate a valid numeric time-entry ID belonging to another issue; since IDs are sequential integers returned in API list responses, this is trivial for any user with repository read access. Limiting factors: the attacker cannot read time entries they are not authorized to view; impact is confined to deletion of time-tracking records (no data exfiltration, no code execution); and the attacker must already hold a valid Gitea account or API token for the instance.

Impact

The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N, score 5.3) claims no privileges are required (PR:N), but this conflicts with the technical evidence: both the API and web integration tests require an authenticated session or token, as shown by loginUser() and AddTokenAuth(token) in the test code. This metric appears incorrect - PR:L (low privileges, authenticated user) is more accurate, which would reduce the base score to approximately 4.3. Real-world risk is low: EPSS is 0.16% (5th percentile), SSVC reports exploitation: none and technical impact: partial, and there is no KEV listing. The impact is limited to deletion of time-tracking entries across issues - no confidentiality loss, no code execution, no service disruption. SSVC notes the attack is automatable (low complexity, no user interaction once authenticated), but the narrow impact class keeps this in low operational priority for most organizations. The discrepancy between PR:N in the NVD CVSS and the authenticated-only code paths should be verified with the Gitea security team.

Exploit ScenarioDerived

An authenticated Gitea user enumerates numeric time-entry IDs from issues they have access to - IDs are sequential integers visible in API responses. The attacker then sends a DELETE request to an issue URL they can access (e.g., /api/v1/repos/victim/repo/issues/1/times/99) substituting time ID 99 from a different issue, causing that entry to be silently deleted without the legitimate owner's involvement. No public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 22, 2026

Insecure direct object reference (IDOR) in Gitea's issue time-tracking feature allows authenticated users to delete tracked-time entries belonging to issues other than the one specified in the request URL. Affected are all Gitea Open Source Git Server versions before 1.25.5. The root cause is that GetTrackedTimeByID performed a database lookup using only the time entry's numeric ID, without filtering by the issue ID present in the URL path, enabling cross-issue data manipulation. No public exploit has been identified at time of analysis, and CISA KEV does not list this vulnerability.

RemediationAI

Upgrade to Gitea 1.25.5 or later, which includes the scope-fixing patches from pull requests https://github.com/go-gitea/gitea/pull/36664 and https://github.com/go-gitea/gitea/pull/36689. The patched release is confirmed available at https://github.com/go-gitea/gitea/releases/tag/v1.25.5. If an immediate upgrade is not feasible, a compensating control is to disable the time-tracking feature entirely in the Gitea administration panel (Admin → Settings → Features → Enable Time Tracking), which removes the vulnerable endpoint from the attack surface; note this will prevent all time logging for all users and repositories. Restricting API token issuance and auditing existing time-tracking records for unexpected deletions across issues may also help detect exploitation of instances that cannot be patched immediately.

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

The vulnerability affects the tracked-time subsystem of Gitea (CPE: cpe:2.3:a:gitea:gitea_open_source_git_server:*:*:*:*:*:*:*:*), a self-hosted Git service written in Go. CWE-639 (Authorization Bypass Through User-Controlled Key) describes the root cause: the application uses an attacker-controlled path parameter - the numeric time entry ID - as the sole lookup key, without verifying that the retrieved record belongs to the issue also named in the URL. The patch diff confirms the fix: GetTrackedTimeByID was changed to include a WHERE issue_id = ? clause alongside the ID lookup, making the lookup scope-safe. Both the REST API handler (routers/api/v1/repo/issue_tracked_time.go) and the web handler (routers/web/repo/issue_timetrack.go) were affected, as both called the unscoped function. Integration tests added in the patch confirm that supplying a time ID belonging to a different issue now returns HTTP 404.

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 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 4.3 MEDIUM

PR:L because both API and web handlers require authentication; all other metrics match the provided vector.

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

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

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

DescriptionCVE.org

Gitea versions before 1.25.5 look up tracked-time entries by time ID without scoping the lookup to the issue in the request URL, allowing deletion attempts to target entries from another issue.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
popular self-hosted Git platform, smaller footprint than GitLab or GitHub Enterprise
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

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.

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