CVE-2026-20912
gitea: Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure
Severity by source
Trivy's own label is CRITICAL. Rated critical by Red Hat, Bitnami. Rated lower by GHSA (medium).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | gitea | 1.25.4 |
| go::GitHub Security Advisory Go | github.com/go-gitea/gitea | 1.25.4 |
| rapidfort alpine 3.20 | gitea | 1.25.4-r0 |
| rapidfort alpine 3.21 | gitea | 1.25.4-r0 |
| rapidfort alpine 3.22 | gitea | 1.25.4-r0 |
| rapidfort alpine 3.23 | gitea | 1.25.4-r0 |
References
- https://access.redhat.com/security/cve/CVE-2026-20912
- https://blog.gitea.com/release-of-1.25.4
- https://blog.gitea.com/release-of-1.25.4/
- https://bugzilla.redhat.com/show_bug.cgi?id=2432219
- https://github.com/go-gitea/gitea
- https://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30
- https://github.com/go-gitea/gitea/pull/36320
- https://github.com/go-gitea/gitea/pull/36355