{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-20912","id":"CVE-2026-20912","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.","descriptionLong":"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-22T22:01:52.026Z","updated":"2026-10-28T02:30:49.960132959Z","reserved":"2026-01-08T23:02:37.548Z","status":"Modified","rejected":false,"assigner":"Gitea","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"0b0ca135-0b70-47e7-9f44-1890c2a1c46c"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"0b0ca135-0b70-47e7-9f44-1890c2a1c46c"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"redhat-SADP"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"OSV"}],"rating":"critical","products":["Gitea Open Source Git Server"],"affectedProducts":[{"vendor":"Gitea","product":"Gitea Open Source Git Server","defaultStatus":"unaffected","versions":[{"version":"0","lessThanOrEqual":"1.25.3","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/go-gitea/gitea","purl":"pkg:golang/github.com/go-gitea/gitea","ranges":["<1.25.4"],"fixed":["1.25.4"],"advisory":"GHSA-4xx9-vc8v-87hv"},{"ecosystem":"Go","name":"code.gitea.io/gitea","purl":"pkg:golang/code.gitea.io/gitea","ranges":["<1.25.4"],"fixed":["1.25.4"],"advisory":"GO-2026-4364"}],"cwes":["CWE-284","CWE-639","CWE-283"],"aliases":["BIT-gitea-2026-20912","GHSA-4xx9-vc8v-87hv","GHSA-vfmv-f93v-37mw","GO-2026-4364"],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw","tags":["vendor-advisory","Broken Link","advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/36320","tags":["patch","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/go-gitea/gitea/pull/36355","tags":["patch","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.25.4","tags":["release-notes","Release Notes","advisory","web"]},{"url":"https://blog.gitea.com/release-of-1.25.4/","tags":["release-notes","Release Notes","advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-20912","tags":["vdb-entry","x_refsource_REDHAT","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2432219","tags":["issue-tracking","x_refsource_REDHAT","report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json","tags":["x_sadp-csaf-vex","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/20xxx/CVE-2026-20912.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-20912","tags":["advisory"]},{"url":"https://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30","tags":["web"]},{"url":"https://blog.gitea.com/release-of-1.25.4","tags":["web"]},{"url":"https://github.com/go-gitea/gitea","tags":["package"]},{"url":"https://github.com/advisories/GHSA-4xx9-vc8v-87hv","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.00455,"epssPercentile":0.40215,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-20912","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-20912","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-20912","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4xx9-vc8v-87hv","ok":true,"note":"GHSA-4xx9-vc8v-87hv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-20912","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}