CVE-2026-20912 Details
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.
A vulnerability exists in Gitea's handling of repository attachments linked to releases. The application fails to properly verify repository ownership, which can lead to unauthorized access. An attachment uploaded to a private repository might be incorrectly associated with a release in a public repository, making it available to unauthorized users. This issue affects Gitea versions 1.25.0 through 1.25.3.
Users can upgrade to Gitea version 1.25.4, which addresses this vulnerability by ensuring that release attachments are correctly linked to the intended repository. Instructions for downloading Gitea 1.25.4 are available on the Gitea releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-20912 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2432219 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json | redhat-SADP | |
| https://blog.gitea.com/release-of-1.25.4/ | Gitea Limited | Release Notes |
| https://github.com/go-gitea/gitea/pull/36320 | Gitea Limited | Issue TrackingPatch |
| https://github.com/go-gitea/gitea/pull/36355 | Gitea Limited | Issue TrackingPatch |
| https://github.com/go-gitea/gitea/releases/tag/v1.25.4 | Gitea Limited | Release Notes |
| https://github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw | Gitea Limited | Broken Link |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-283 | Unverified Ownership | redhat-SADP |
| CWE-284 | Improper Access Control | Gitea Limited |
| CWE-639 | Authorization Bypass Through User-Controlled Key | Gitea Limited |
Affected Products
| Product | Versions |
|---|---|
| gitea gitea | < 1.25.4 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 27, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | Gitea Limited |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 29, 2026 | Initial Analysis | [email protected] |
| Jan 23, 2026 | CVE Modified | CISA-ADP |
| Jan 22, 2026 | New CVE Received | Gitea Limited |