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

Summary

CVECVE-2026-20912
StatePUBLISHED
AssignerGitea
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-01-22 22:16:19 UTC
Updated2026-06-27 05:16:42 UTC
DescriptionGitea 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.

Risk And Classification

Primary CVSS: v3.1 9.1 CRITICAL from ADP

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Problem Types: CWE-284 | CWE-639 | CWE-283 | CWE-284 CWE-284: Improper Access Control | CWE-639 CWE-639: Authorization Bypass Through User-Controlled Key | CWE-283 Unverified Ownership


VersionSourceTypeScoreSeverityVector
3.1ADPDECLARED9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3.1ADPCVSS9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3.10b0ca135-0b70-47e7-9f44-1890c2a1c46cSecondary9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Gitea Gitea All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Gitea Gitea Open Source Git Server affected 1.25.3 semver Not specified
ADP Red Hat OpenShift Pipelines Not specified Not specified

References

ReferenceSourceLinkTags
github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw 88ee5874-cf24-4952-aea0-31affedb7ff2 github.com Broken Link
blog.gitea.com/release-of-1.25.4 88ee5874-cf24-4952-aea0-31affedb7ff2 blog.gitea.com Release Notes
access.redhat.com/security/cve/CVE-2026-20912 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
bugzilla.redhat.com/show_bug.cgi 0b0ca135-0b70-47e7-9f44-1890c2a1c46c bugzilla.redhat.com
security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json 0b0ca135-0b70-47e7-9f44-1890c2a1c46c security.access.redhat.com
github.com/go-gitea/gitea/releases/tag/v1.25.4 88ee5874-cf24-4952-aea0-31affedb7ff2 github.com Release Notes
github.com/go-gitea/gitea/pull/36320 88ee5874-cf24-4952-aea0-31affedb7ff2 github.com Issue Tracking, Patch
github.com/go-gitea/gitea/pull/36355 88ee5874-cf24-4952-aea0-31affedb7ff2 github.com Issue Tracking, Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: spingARbor (en)

Additional Advisory Data

SourceTimeEvent
ADP2026-01-22T23:02:45.929ZReported to Red Hat.
ADP2026-01-22T22:01:52.026ZMade public.
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report