9.1critical
Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure
- Severity
- 9.1critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.46% (higher than 41% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Gitea
- Also known as
- GHSA-4xx9-vc8v-87hvBIT-GITEA-2026-20912GHSA-vfmv-f93v-37mwGO-2026-4364
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Gitea Gitea Open Source Git Server | up to 1.25.3 | CVE List |
| openshift-pipelines/pipelines-opc-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-cli-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-cli-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-controller-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel9 | Not specified | CVE List |
| github.com/go-gitea/gitea (Go) | before 1.25.4 | GitHub Advisory Database |
| code.gitea.io/gitea (Go) | before 1.25.4 | Go Vulnerability Database |
| gitea gitea | before 1.25.4 | NVD |
| gitea (Bitnami) | before 1.25.4 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| redhat-SADP | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
Go Vulnerability Database
Gitea does not properly validate repository ownership when linking attachments to releases in code.gitea.io/gitea
NVD (es)
Gitea no valida correctamente la propiedad del repositorio al vincular adjuntos a las versiones. Un adjunto subido a un repositorio privado podría vincularse potencialmente a una versión en un repositorio público diferente, haciéndolo accesible a usuarios no autorizados.
References
| https://github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw | broken-link, vendor-advisory, web | |
| https://github.com/go-gitea/gitea/pull/36320 | fix, issue-tracking, patch, web | |
| https://github.com/go-gitea/gitea/pull/36355 | fix, issue-tracking, patch, web | |
| https://github.com/go-gitea/gitea/releases/tag/v1.25.4 | article, release-notes, web | |
| https://blog.gitea.com/release-of-1.25.4/ | article, release-notes | |
| https://access.redhat.com/security/cve/CVE-2026-20912 | vdb-entry, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2432219 | issue-tracking, web | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-20912 | advisory, web | |
| https://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30 | web | |
| https://blog.gitea.com/release-of-1.25.4 | web | |
| https://github.com/go-gitea/gitea | package | |
| https://github.com/advisories/GHSA-4xx9-vc8v-87hv | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-20912 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4xx9-vc8v-87hv changed 2026-02-03 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4364 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2026-20912 changed 2026-07-15 | Public domain |
| Bitnami Vulnerability Database | BIT-GITEA-2026-20912 changed 2026-09-08 | Apache-2.0 |