Skip to content

CVE-2026-20912 Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure

CriticalCVSS 9.1 EPSS 0.46%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
Red Hat

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.

Upgrade path

5 packages: 4 fixed.

PackageAffectedFixed inStatus
code.gitea.io/gitea(Go) < 1.25.4 1.25.4 Fixed
Gitea < 1.25.4 1.25.4 Fixed
Gitea Open Source Git Server <= 1.25.3 after 1.25.3 Fixed
go-gitea github.com/go-gitea/gitea(Go) < 1.25.4 1.25.4 Fixed
redhat openshift pipelines = 1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
go-gitea github.com/go-gitea/gitea(Go) < 1.25.4 1.25.4
code.gitea.io/gitea(Go) < 1.25.4 1.25.4
Gitea Open Source Git Server <= 1.25.3 No fix listed
redhat openshift pipelines = 1 No fix listed
Gitea < 1.25.4 1.25.4

References