GitHub Advisoryadvisory · Go
GHSA-4xx9-vc8v-87hv Gitea does not properly validate repository ownership when linking attachments to releases
MEDIUM
Official page ↗
- Aliases
- CVE-2026-20912
- Ecosystem
- Go
- Packages
- github.com/go-gitea/gitea
- Severity
- Moderate
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- Weaknesses
- CWE-284
- Reviewed
- 2026-01-23
Affected packages
• Go github.com/go-gitea/gitea: < 1.25.4 → fixed in 1.25.4
Description
Gitea does not properly validate repository ownership when linking attachments to releases. An attachment uploaded to a private repository could potentially be linked to a release in a different public repository, making it accessible to unauthorized users.
Related
Alias · CVE (1)
- CVE-2026-20912 Gitea does not properly validate repository ownership when linking attachments to releases. vulnerability
Weakness · CWE (1)
- CWE-284 Improper Access Control weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-20912 advisory
- https://github.com/go-gitea/gitea/pull/36320 web
- https://github.com/go-gitea/gitea/pull/36355 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