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.
Published: 2026-01-22
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Public disclosure of private attachments
Action: Immediate Patch
AI Analysis

Impact

Gitea fails to validate the ownership of repositories when an attachment is linked to a release. As a result, an attachment that has been uploaded to a private repository can be referenced by a release in another repository, including public ones. This flaw constitutes a cross‑repository authorization bypass (CWE‑284) that allows an attacker to obtain access to confidential data by executing the bypass. The disclosed content can be viewed or downloaded by anyone who has read access to the target public repository, thereby violating confidentiality and potentially exposing sensitive files.

Affected Systems

The vulnerability affects the Gitea Open Source Git Server. No specific version range is listed in the advisory, but the fix is included in release 1.25.4 and newer. All earlier releases that still allow private repositories to link attachments to releases are considered vulnerable.

Risk and Exploitability

The vulnerability carries a CVSS score of 9.1, indicating critical severity. The EPSS score is below 1 percent, implying that, while the exploit likelihood is low, the potential damage is considerable. The flaw is not listed in the CISA KEV catalog. The attack can be carried out by an attacker who can upload an attachment to a private repository and then edit a release in a public repository to reference that attachment. The required conditions are minimal, making the attack plausible, especially in environments where privacy boundaries between repositories are not tightly enforced.

Generated by OpenCVE AI on April 18, 2026 at 03:31 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the Gitea 1.25.4 or later patch that validates repository ownership before linking attachments to releases
  • If patching is delayed, restrict the ability to link attachments from private repositories by disabling attachment linking on public repositories or through repository‑level permission settings
  • Implement an administrative review workflow for release attachments in public repositories to ensure no private content is inadvertently exposed

Generated by OpenCVE AI on April 18, 2026 at 03:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-4xx9-vc8v-87hv Gitea does not properly validate repository ownership when linking attachments to releases
History

Thu, 29 Jan 2026 22:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:*

Tue, 27 Jan 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Critical


Fri, 23 Jan 2026 22:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 23 Jan 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

Thu, 22 Jan 2026 23:00:00 +0000

Type Values Removed Values Added
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.
Title Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure
Weaknesses CWE-284
CWE-639
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-01-23T21:53:41.649Z

Reserved: 2026-01-08T23:02:37.548Z

Link: CVE-2026-20912

cve-icon Vulnrichment

Updated: 2026-01-23T17:51:26.556Z

cve-icon NVD

Status : Analyzed

Published: 2026-01-22T22:16:19.297

Modified: 2026-01-29T22:03:58.330

Link: CVE-2026-20912

cve-icon Redhat

Severity : Critical

Publid Date: 2026-01-22T22:01:52Z

Links: CVE-2026-20912 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-18T03:45:21Z

Weaknesses