NetSight
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

EcosystemPackageAffectedFixed in
gogithub.com/go-gitea/gitea< 1.25.41.25.4

Affected products

VendorProductAffected versions
GiteaGitea
before 1.25.4

Weakness classification

References