Vulnerability advisory
GHSA-4xx9-vc8v-87hv
Gitea does not properly validate repository ownership when linking attachments to releases
Also known as BIT-gitea-2026-20912CVE-2026-20912GHSA-vfmv-f93v-37mwGO-2026-4364
Severity
- 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
Affected versions
| Affected | Fixed in |
|---|---|
| All versions before 1.25.4 | 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.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-20912 ↗
- Webgithub.com/go-gitea/gitea/pull/36320 ↗
- Webgithub.com/go-gitea/gitea/pull/36355 ↗
- Webgithub.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30 ↗
- Webblog.gitea.com/release-of-1.25.4 ↗
- Packagegithub.com/go-gitea/gitea ↗
- Webgithub.com/go-gitea/gitea/releases/tag/v1.25.4 ↗