CVE-2026-20912
CRITICAL9.1EPSS 0.02%Gitea does not properly validate repository ownership when linking attachments to releases
Published: 1/23/2026Modified: 2/3/2026
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 (3)
- Bitnami/giteafrom 0, < 1.25.4
- Go/code.gitea.io/giteafrom 0, < 1.25.4
- Go/github.com/go-gitea/giteafrom 0, < 1.25.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | CRITICAL9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
References (10)
- ADVISORYhttps://github.com/advisories/GHSA-4xx9-vc8v-87hv
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-20912
- PATCHhttps://github.com/go-gitea/gitea
- WEBhttps://blog.gitea.com/release-of-1.25.4
- WEBhttps://blog.gitea.com/release-of-1.25.4/
- WEBhttps://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30
- WEBhttps://github.com/go-gitea/gitea/pull/36320
- WEBhttps://github.com/go-gitea/gitea/pull/36355
- WEBhttps://github.com/go-gitea/gitea/releases/tag/v1.25.4
- WEBhttps://github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw