{"id":"CVE-2026-20912","state":"PUBLISHED","title":"Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure","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.","publishedAt":"2026-01-22T22:01:52.026Z","updatedAt":"2026-07-15T01:20:07.394Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CISA-ADP"},"assigner":"Gitea","products":["Gitea Gitea Open Source Git Server"],"affected":[{"vendor":"Gitea","product":"Gitea Open Source Git Server","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"1.25.3","versionType":"semver"}]}],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw","https://github.com/go-gitea/gitea/pull/36320","https://github.com/go-gitea/gitea/pull/36355","https://github.com/go-gitea/gitea/releases/tag/v1.25.4","https://blog.gitea.com/release-of-1.25.4/","https://access.redhat.com/security/cve/CVE-2026-20912","https://bugzilla.redhat.com/show_bug.cgi?id=2432219","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json"],"weaknesses":["CWE-284","CWE-639","CWE-283"],"ingestedAt":"2026-10-29T20:11:10.572Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/20xxx/CVE-2026-20912.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-20912","state":"PUBLISHED","datePublished":"2026-01-22T22:01:52.026Z","dateUpdated":"2026-07-15T01:20:07.394Z","assignerShortName":"Gitea","assignerOrgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","dateReserved":"2026-01-08T23:02:37.548Z"},"containers":{"cna":{"title":"Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure","descriptions":[{"lang":"en","value":"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":[{"vendor":"Gitea","product":"Gitea Open Source Git Server","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"1.25.3","versionType":"semver"}]}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw","name":"GitHub Security Advisory","tags":["vendor-advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/36320","name":"GitHub Pull Request #36320","tags":["patch"]},{"url":"https://github.com/go-gitea/gitea/pull/36355","name":"GitHub Pull Request #36355","tags":["patch"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.25.4","name":"Gitea v1.25.4 Release","tags":["release-notes"]},{"url":"https://blog.gitea.com/release-of-1.25.4/","name":"Gitea v1.25.4 Release Blog Post","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-284","description":"CWE-284: Improper Access Control","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-639","description":"CWE-639: Authorization Bypass Through User-Controlled Key","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Gitea","orgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","dateUpdated":"2026-01-22T22:01:52.026Z"},"credits":[{"lang":"en","value":"spingARbor","type":"reporter"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.1,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-01-23T17:51:12.073308Z","id":"CVE-2026-20912","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-23T21:53:41.649Z"}},{"title":"gitea: Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure","descriptions":[{"lang":"en","value":"An access control flaw has been discovered in Gitea. 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":[{"vendor":"Red Hat","product":"OpenShift Pipelines","packageName":"openshift-pipelines/pipelines-opc-rhel9","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","cpes":["cpe:/a:redhat:openshift_pipelines:1"]},{"vendor":"Red Hat","product":"OpenShift Pipelines","packageName":"openshift-pipelines/pipelines-pipelines-as-code-cli-rhel8","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","cpes":["cpe:/a:redhat:openshift_pipelines:1"]},{"vendor":"Red Hat","product":"OpenShift Pipelines","packageName":"openshift-pipelines/pipelines-pipelines-as-code-cli-rhel9","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","cpes":["cpe:/a:redhat:openshift_pipelines:1"]},{"vendor":"Red Hat","product":"OpenShift Pipelines","packageName":"openshift-pipelines/pipelines-pipelines-as-code-controller-rhel8","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","cpes":["cpe:/a:redhat:openshift_pipelines:1"]},{"vendor":"Red Hat","product":"OpenShift Pipelines","packageName":"openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","cpes":["cpe:/a:redhat:openshift_pipelines:1"]},{"vendor":"Red Hat","product":"OpenShift Pipelines","packageName":"openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel8","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","cpes":["cpe:/a:redhat:openshift_pipelines:1"]},{"vendor":"Red Hat","product":"OpenShift Pipelines","packageName":"openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel9","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","cpes":["cpe:/a:redhat:openshift_pipelines:1"]},{"vendor":"Red Hat","product":"OpenShift Pipelines","packageName":"openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel8","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","cpes":["cpe:/a:redhat:openshift_pipelines:1"]},{"vendor":"Red Hat","product":"OpenShift Pipelines","packageName":"openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel9","defaultStatus":"unaffected","collectionURL":"https://access.redhat.com/downloads/content/package-browser/","cpes":["cpe:/a:redhat:openshift_pipelines:1"]}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-20912","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2432219","name":"RHBZ#2432219","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json","tags":["x_sadp-csaf-vex"]}],"metrics":[{"other":{"content":{"namespace":"https://access.redhat.com/security/updates/classification/","value":"Critical"},"type":"Red Hat severity rating"}},{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-283","description":"Unverified Ownership","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat-SADP","orgId":"0b0ca135-0b70-47e7-9f44-1890c2a1c46c","dateUpdated":"2026-07-15T01:20:07.394Z"},"datePublic":"2026-01-22T22:01:52.026Z","timeline":[{"lang":"en","time":"2026-01-22T23:02:45.929Z","value":"Reported to Red Hat."},{"lang":"en","time":"2026-01-22T22:01:52.026Z","value":"Made public."}],"x_adpType":"supplier","x_generator":{"engine":"sadp-cli 1.0.0"}}]}}}