What’s Vulnerable › Vulnerabilities
CVE-2026-105268: Gitea issue attachment API allows changing comment attachments
- Severity: medium (CVSS 4.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-06 · updated 2026-10-13
- Weakness: CWE-639
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.
Affected products
- Gitea Open Source Git Server: before 28.1.0 — fixed in 28.1.0
How to fix
Upgrade to a fixed version: Gitea Open Source Git Server 28.1.0. Check the vendor advisory for mitigations.
References
- https://blog.gitea.com/release-of-28.1.0/
- https://github.com/go-gitea/gitea/pull/39501
- https://github.com/go-gitea/gitea/pull/39507
- https://github.com/go-gitea/gitea/releases/tag/v28.1.0
- https://github.com/go-gitea/gitea/security/advisories/GHSA-96qg-qxxj-r8xq
Get alerted when CVE-2026-105268 or the next vulnerability affects your stack