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.
Problem types
CWE-284: Improper Access Control
CWE-639: Authorization Bypass Through User-Controlled Key
Product status
Any version
Credits
spingARbor
References
github.com/.../gitea/security/advisories/GHSA-vfmv-f93v-37mw (GitHub Security Advisory)
github.com/go-gitea/gitea/pull/36320 (GitHub Pull Request #36320)
github.com/go-gitea/gitea/pull/36355 (GitHub Pull Request #36355)
github.com/go-gitea/gitea/releases/tag/v1.25.4 (Gitea v1.25.4 Release)
blog.gitea.com/release-of-1.25.4/ (Gitea v1.25.4 Release Blog Post)