critical9.1
CVE-2026-20912
Gitea does not properly validate repository ownership when linking attachments to releases
Impact
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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/go-gitea/gitea | < 1.25.4 | 1.25.4 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Gitea | Gitea | before 1.25.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://blog.gitea.com/release-of-1.25.4/
- https://github.com/go-gitea/gitea/pull/36320
- https://github.com/go-gitea/gitea/pull/36355
- https://github.com/go-gitea/gitea/releases/tag/v1.25.4
- https://github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw
- https://access.redhat.com/security/cve/CVE-2026-20912
- https://bugzilla.redhat.com/show_bug.cgi?id=2432219
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json
- https://github.com/advisories/GHSA-4xx9-vc8v-87hv
- https://nvd.nist.gov/vuln/detail/CVE-2026-20912
- https://blog.gitea.com/release-of-1.25.4
- https://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30