go-gitea/gitea · Security
Gitea does not properly validate repository ownership when linking attachments to releases
- GHSA ID
- GHSA-4xx9-vc8v-87hv
- CVE ID
- CVE-2026-20912
- Severity
- medium
- Published
- Updated
- CVSS v4
- 5.1 · 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
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.
CWEs
- CWE-284 · Improper Access Control
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-20912 ↗
- https://github.com/go-gitea/gitea/pull/36320 ↗
- https://github.com/go-gitea/gitea/pull/36355 ↗
- https://blog.gitea.com/release-of-1.25.4 ↗
- https://github.com/go-gitea/gitea/releases/tag/v1.25.4 ↗
- https://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30 ↗
- https://github.com/advisories/GHSA-4xx9-vc8v-87hv ↗