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.
Published: 2026-10-06
Score: 4.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized modification of comment attachments
Action: Upgrade
AI Analysis

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.

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

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 yet.

History

Fri, 16 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 13 Oct 2026 14:45:00 +0000

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

Wed, 07 Oct 2026 17:30:00 +0000

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'}


Wed, 07 Oct 2026 04:45:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

Tue, 06 Oct 2026 21:45:00 +0000

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

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-07T16:12:20.545Z

Reserved: 2026-10-04T22:02:04.877Z

Link: CVE-2026-105268

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-10-06T22:17:02.377

Modified: 2026-10-13T14:38:35.583

Link: CVE-2026-105268

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T21:35:40Z

Links: CVE-2026-105268 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T19:00:16Z

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

  • CWE-863

    Incorrect Authorization