Skip to main content

Gitea CVE-2026-105268

| EUVDEUVD-2026-94064 MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-10-06 88ee5874-cf24-4952-aea0-31affedb7ff2
4.3
CVSS 3.1 · Vendor: 88ee5874-cf24-4952-aea0-31affedb7ff2
View

Attack ChainAIDerived

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

  1. Access
    Authenticate and open an issue
  2. Exploit
    Note comment attachment_id on that issue
  3. Execution
    Call issue assets API with comment attachment_id
  4. Impact
    Rename or delete other users' attachments

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

Requires an authenticated Gitea account with permission to open an issue, AND the presence of attachments posted by OTHER users on comments within an issue that the attacker authored - the flaw only grants control over comment attachments reachable through the attacker's own issue via the /api/v1/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id} endpoint, which failed to exclude comment-owned attachments. Exploitation is LIMITED to renaming or deleting those attachments; attachment file contents cannot be modified (C:N), and no privilege escalation or access beyond the attacker's existing repository scope is possible. The low-privilege authentication requirement (PR:L) and the integrity-only, data-destruction-scoped effect are the primary factors that keep realistic risk low despite the network-accessible, low-complexity API vector.

Impact

All available signals converge on this being a LOW real-world priority rather than a high-CVSS-but-overstated issue. The CVSS 3.1 base score is only 4.3 (Medium), and its vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N) already reflects a limited, integrity-only impact requiring an authenticated actor. The EPSS score of 0.15% (3rd percentile) indicates very low predicted exploitation probability, and CISA's SSVC framework classifies Exploitation as 'none', Automatable as 'no', and Technical Impact as only 'partial' - all three agreeing with the low CVSS. The issue is NOT on the CISA KEV list and there is no public exploit identified at time of analysis, so no signals conflict with the low-risk conclusion. The one nuance worth stating explicitly is that the input Tag labels this an 'Authentication Bypass,' which is inaccurate: CWE-639 and the CVSS PR:L value both show this is an AUTHORIZATION flaw abusable only by an already-authenticated user who authored the issue, not a pre-authentication bypass. The fix (PR #39501, issue_attachment.go) and affected range (Gitea ≤28.0.0, fixed in 28.1.0) are well corroborated across NVD, the Gitea GHSA advisory, and EUVD, so confidence in the vulnerability itself is high even though its practical severity is modest.

Exploit ScenarioDerived

An authenticated Gitea user opens an issue in a repository they can access; other collaborators then reply with comments that include file attachments. Abusing the issue-attachment API endpoint, the issue author passes a comment's attachment_id and renames or deletes other users' comment attachments, even though those should not be under their control. No public exploit code exists, but the attack is trivial (AV:N/AC:L) for any user who can open an issue; it cannot alter attachment contents, only metadata/existence.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 07, 2026

Authorization bypass in Gitea's issue attachment API (CVE-2026-105268) lets an authenticated user who authored an issue rename or delete attachments that other users posted in comments on that same issue, because the endpoint /api/v1/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id} failed to exclude comment-owned attachments from the set the issue author is allowed to manage. Only metadata operations (rename/delete) are possible - attachment contents cannot be altered (C:N), and no data outside the attacker's own repository scope is reachable. Rated CVSS 4.3 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N) with an EPSS of 0.15% (3rd percentile) and an SSVC assessment of Exploitation:none / Automatable:no / Technical Impact:partial, so no public exploit was identified at time of analysis; this is a low-priority integrity/data-destruction defect, not a confidentiality or code-execution issue.

RemediationAI

Upgrade to Gitea 28.1.0, which contains the corrected ownership check (Vendor-released patch: 28.1.0); the fix is described in the upstream PRs 39501 and 39507 and the release blog at https://blog.gitea.com/release-of-28.1.0/, with the advisory at https://github.com/go-gitea/gitea/security/advisories/GHSA-96qg-qxxj-r8xq. There is no configuration toggle that disables just this endpoint, so patching is the primary remedy. If immediate upgrade is not possible, administrators can reduce exposure by restricting API access to trusted networks (e.g. blocking /api/v1/repos/*/issues/*/assets/* at a reverse proxy) - but note this breaks legitimate attachment operations for all users - or by auditing which accounts can open issues, since the permissive path requires only low-privilege authenticated access (PR:L); neither workaround removes the underlying flaw and both degrade normal functionality.

Affected VersionsENISA

Gitea 0 ≤28.0.0

Affected Packages

euvd gitea no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a textbook CWE-639 (Authorization Bypass Through User-Controlled Key) instance: the API handler attachmentBelongsToRepoOrIssue used user-supplied path parameters (repository owner/name, issue index, and attachment_id) to authorize access, but its ownership check only verified that the attachment was attached to some issue rather than confirming the attachment belonged to the issue itself. In Gitea's data model, an attachment record carries both an IssueID and optionally a CommentID; attachments uploaded with a comment have CommentID != 0. The original guard rejected only attachments where IssueID 0 (i.e. not in an issue at all), so a comment attachment reachable through the attacker's own issue was treated as an issue attachment the author is permitted to edit or delete. The upstream fix in PR 39501 tightens the condition to attachment.IssueID 0 || attachment.CommentID != 0, explicitly excluding comment-owned attachments. This is a classic object-reference authorization defect where the key (attachment_id) is attacker-controllable and the policy boundary between issue-level and comment-level ownership was not enforced.

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 (88ee5874-cf24-4952-aea0-31affedb7ff2) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 4.3 MEDIUM

Remote API call (AV:N/AC:L) by an authenticated issue author (PR:L, no UI); only rename/delete of others' comment attachments yields integrity impact (I:L) with no confidentiality and no content/availability loss.

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 Vendor (88ee5874-cf24-4952-aea0-31affedb7ff2).

CVSS VectorVendor: 88ee5874-cf24-4952-aea0-31affedb7ff2

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

Lifecycle Timeline

2
CVSS changed
Oct 07, 2026 - 17:22 NVD
4.3 (None) 4.3 (MEDIUM)
CVE Published
Oct 06, 2026 - 22:17 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

The Gitea API routes for issue attachments (/api/v1/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}) also accepted attachments that belong to comments on the issue. Because the author of an issue may edit and delete the issue's attachments, a user who opened an issue could rename or delete attachments that other users had posted in comments on that issue. The contents of the attachments could not be changed.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
popular self-hosted Git service, broad dev use but not ubiquitous infrastructure
Data Quality
7 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.1%
Patch available No
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
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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