CVE-2026-20912: Gitea does not properly validate repository ownership when linking attachments to releases
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
- blog.gitea.com/release-of-1.25.4
- github.com/advisories/GHSA-4xx9-vc8v-87hv
- github.com/go-gitea/gitea
- github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30
- github.com/go-gitea/gitea/pull/36320
- github.com/go-gitea/gitea/pull/36355
- github.com/go-gitea/gitea/releases/tag/v1.25.4
- nvd.nist.gov/vuln/detail/CVE-2026-20912
Code Behaviors & Features
Detect and mitigate CVE-2026-20912 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →