Gitea does not properly verify repository context when deleting attachments. A user who previously uploaded an attachment to a repository may be able to delete it after losing access to that repository by making the request through a different repository they can access.
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hgr3-x44x-33hx Gitea has improper access control for uploaded attachments
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Fri, 23 Jan 2026 22:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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


Fri, 23 Jan 2026 16:45:00 +0000

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

Thu, 22 Jan 2026 23:00:00 +0000

Type Values Removed Values Added
Description Gitea does not properly verify repository context when deleting attachments. A user who previously uploaded an attachment to a repository may be able to delete it after losing access to that repository by making the request through a different repository they can access.
Title Gitea Web Attachment Deletion: Cross-Repository Unauthorized Deletion via Missing Repo Ownership Check
Weaknesses CWE-284
References

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-01-23T21:54:48.862Z

Reserved: 2026-01-08T23:02:37.558Z

Link: CVE-2026-20736

cve-icon Vulnrichment

Updated: 2026-01-23T21:13:18.343Z

cve-icon NVD

Status : Received

Published: 2026-01-22T22:16:17.207

Modified: 2026-01-23T22:16:15.820

Link: CVE-2026-20736

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-01-23T10:27:14Z

Weaknesses