{"schemaVersion":3,"id":"CVE-2026-20912","aliases":["GHSA-4xx9-vc8v-87hv","BIT-gitea-2026-20912","GHSA-vfmv-f93v-37mw","GO-2026-4364"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-01-22T22:01:52.026Z","modified":"2026-07-15T01:20:07.394Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":5.1,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00455,"percentile":0.3812,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.006999999999999975,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00462},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00455,"percentile":0.3812}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00462,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00455,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00455,"percentile":0.3812}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-284","name":"Improper Access Control","description":"The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.","type":"weakness","status":"Incomplete","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/284.html"},{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key","description":"The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/639.html"},{"id":"CWE-283","name":"Unverified Ownership","description":"The product does not properly verify that a critical resource is owned by the proper entity.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/283.html"}],"affected":[{"vendor":"gitea","product":"gitea","name":"Gitea","label":"gitea","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.25.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.25.4","eol":null,"hubHref":"/vendor/gitea/gitea"},{"vendor":"gitea","product":"gitea open source git server","name":"Gitea Open Source Git Server","label":"gitea open source git server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.25.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.25.3","eol":null,"hubHref":"/vendor/gitea/gitea_open_source_git_server"},{"vendor":"code.gitea.io","product":"gitea","name":"code.gitea.io/gitea","label":"gitea","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/code.gitea.io/gitea","purlType":"golang","versions":[{"text":"< 1.25.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.25.4","eol":null,"hubHref":null},{"vendor":"github.com/go-gitea","product":"gitea","name":"github.com/go-gitea/gitea","label":"gitea","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/go-gitea/gitea","purlType":"golang","versions":[{"text":"< 1.25.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.25.4","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw","label":"github.com/go-gitea/gitea/security/advisories/GHSA-vfmv-f93v-37mw","hostname":"github.com","tags":["Vendor Advisory","Broken Link"]},{"url":"https://github.com/go-gitea/gitea/pull/36320","label":"github.com/go-gitea/gitea/pull/36320","hostname":"github.com","tags":["Patch","WEB","Issue Tracking"]},{"url":"https://github.com/go-gitea/gitea/pull/36355","label":"github.com/go-gitea/gitea/pull/36355","hostname":"github.com","tags":["Patch","WEB","Issue Tracking"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.25.4","label":"github.com/go-gitea/gitea/releases/tag/v1.25.4","hostname":"github.com","tags":["Release Notes","WEB"]},{"url":"https://blog.gitea.com/release-of-1.25.4/","label":"blog.gitea.com/release-of-1.25.4/","hostname":"blog.gitea.com","tags":["Release Notes"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-20912","label":"access.redhat.com/security/cve/CVE-2026-20912","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2432219","label":"bugzilla.redhat.com/show_bug.cgi?id=2432219","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20912.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-20912","label":"nvd.nist.gov/vuln/detail/CVE-2026-20912","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30","label":"github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30","hostname":"github.com","tags":["WEB"]},{"url":"https://blog.gitea.com/release-of-1.25.4","label":"blog.gitea.com/release-of-1.25.4","hostname":"blog.gitea.com","tags":["WEB"]},{"url":"https://github.com/go-gitea/gitea","label":"github.com/go-gitea/gitea","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-4xx9-vc8v-87hv","label":"github.com/advisories/GHSA-4xx9-vc8v-87hv","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21483-1","SUSE-SU-2026:0403-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:21483-1","SUSE-SU-2026:0403-1"]},"timeline":[{"kind":"published","date":"2026-01-22T22:01:52.026Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T01:20:07.394Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:03:01.420Z","stale":false,"partial":false}}