GitHub Advisoryadvisory · Go
GHSA-hgr3-x44x-33hx Gitea has improper access control for uploaded attachments
LOW
Official page ↗
- Aliases
- CVE-2026-20736
- Ecosystem
- Go
- Packages
- code.gitea.io/gitea
- Severity
- Low
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- Weaknesses
- CWE-284
- Reviewed
- 2026-01-23
Affected packages
• Go code.gitea.io/gitea: < 1.25.4 → fixed in 1.25.4
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.
Related
Alias · CVE (1)
- CVE-2026-20736 Gitea does not properly verify repository context when deleting attachments. vulnerability
Weakness · CWE (1)
- CWE-284 Improper Access Control weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-20736 advisory
- https://github.com/go-gitea/gitea/pull/36320 web
- https://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30 web
- https://blog.gitea.com/release-of-1.25.4 web
- https://github.com/go-gitea/gitea package
- https://github.com/go-gitea/gitea/releases/tag/v1.25.4 web