NetSight
high7.5

CVE-2026-20736

Gitea has improper access control for uploaded attachments

Impact

Gitea does not properly verify repository context when deleting attachments. A user who previously uploaded an attachment to a repository may be able to delete it after losing access to that repository by making the request through a different repository they can access.

Affected packages

EcosystemPackageAffectedFixed in
gocode.gitea.io/gitea< 1.25.41.25.4

Affected products

VendorProductAffected versions
GiteaGitea
before 1.25.4

Weakness classification

References