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

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-01-22T22:01:52.026Z
- Modified: 2026-09-08T08:47:33.803Z
- Also known as: GHSA-4xx9-vc8v-87hv, BIT-GITEA-2026-20912, GHSA-vfmv-f93v-37mw, GO-2026-4364
- Weaknesses: CWE-283, CWE-284, CWE-639
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Gitea

## 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.

(As written by CVE List.)

## Affected

- Gitea Gitea Open Source Git Server: up to 1.25.3
- openshift-pipelines/pipelines-opc-rhel9: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-cli-rhel8: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-cli-rhel9: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-controller-rhel8: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel8: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel9: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel8: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel9: no versions given
- github.com/go-gitea/gitea (Go): before 1.25.4
- code.gitea.io/gitea (Go): before 1.25.4
- gitea gitea: before 1.25.4
- gitea (Bitnami): before 1.25.4

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- redhat-SADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 Medium `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: rating Critical

## 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

- CVE List: [CVE-2026-20912](https://www.cve.org/CVERecord?id=CVE-2026-20912), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-4xx9-vc8v-87hv](https://github.com/advisories/GHSA-4xx9-vc8v-87hv), CC-BY-4.0, modified 2026-02-03
- Go Vulnerability Database: [GO-2026-4364](https://pkg.go.dev/vuln/GO-2026-4364), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2026-20912](https://nvd.nist.gov/vuln/detail/CVE-2026-20912), Public domain, modified 2026-07-15
- Bitnami Vulnerability Database: [BIT-GITEA-2026-20912](https://osv.dev/vulnerability/BIT-GITEA-2026-20912), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-20912 · Whole record: https://cve.day/CVE-2026-20912.json · Rebuilt by cve.day 2026-11-25T22:59:13.083Z
