---
id: CVE-2026-105268
title: >-
  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
summary: >-
  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 issu…
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'
cwe:
  - CWE-639
  - CWE-863
vendor: gitea
product: gitea
affected:
  - gitea < 28.1.0
patched:
  - gitea 28.1.0
published: '2026-10-06'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T14:38:35.583'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-105268'
references:
  - url: 'https://blog.gitea.com/release-of-28.1.0/'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/39501'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/39507'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v28.1.0'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-96qg-qxxj-r8xq'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-105268.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-105268'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-105268'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00196
epssPercentile: 0.09223
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-07T16:09:19.965265Z'
scores:
  nvd: 4.3
  vendor: 5.4
  adp: 4.3
ingestedAt: '2026-10-06T22:23:15.965Z'
---

## Overview

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.

## Affected

- `gitea < 28.1.0`

## Remediation

Upgrade past the affected range:

- `gitea 28.1.0`

## Vendor advisories

- **Red Hat VEX** · updated 2026-10-07 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-105268.json)
