CVE-2026-105268

Gitea issue attachment API allows changing comment attachments

Published Oct 6, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability occurs when the Gitea API endpoint for issue attachments accepts attachments that belong to comments. An issue author can rename or delete attachments that were originally uploaded by other users as part of a comment. Although the contents of the attachments cannot be replaced, owners of the issue have the ability to remove evidence or manipulate the public record. This is a direct authorization bypass where an attacker with permission to edit an issue can affect the integrity of documents posted by others. The weakness is identified as CWE‑639 and CWE‑863.

Affected Systems

Affected systems are instances of Gitea. The flaw was present before the release of version 28.1.0. No specific affected version range is officially provided, but any deployment of Gitea prior to v28.1.0 is vulnerable. The bug was addressed by the Gitea maintainers and a patched release (28.1.0) is available.

Risk and Exploitability

The EPSS score is < 1%, and the vulnerability is not listed in the CISA KEV catalog. The CVSS score is 4.3, but the impact is limited to modifying the metadata of existing attachments, not to arbitrary code execution or data exfiltration. An attacker requires the ability to edit an issue and the endpoint is exposed over HTTPS, so the attack vector is considered network-based. The likelihood of exploitation is believed to be moderate; defenders should mitigate by applying the latest release as soon as possible.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Gitea version 28.1.0 or later, ensuring the patch is applied to the running service.
  • If an upgrade cannot be performed immediately, disable or restrict the ability for issue authors to modify attachments via API, for example by tightening ACLs or removing the route.
  • Perform an audit of existing comment attachments to verify that no unauthorized deletions or renamings have occurred and restore any legitimate attachments that may have been removed.

Generated by OpenCVE AI on October 7, 2026 at 18:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Description 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.
Title Gitea issue attachment API allows changing comment attachments
Weaknesses CWE-639
CWE-863
References
Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

  • CWE-863

    Incorrect Authorization

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 7, 2026, 4:12 PM
Reserved
Oct 4, 2026, 10:02 PM
Status
Analyzed
Published
Oct 6, 2026, 10:17 PM
Modified
Oct 13, 2026, 2:38 PM
Severity
Moderate
Public date
Oct 6, 2026, 9:35 PM