{"schema_version":"1.9.0","id":"GHSA-4xx9-vc8v-87hv","published":"2026-01-23T00:31:17Z","modified":"2026-02-03T03:08:45.128827Z","aliases":["BIT-gitea-2026-20912","CVE-2026-20912","GHSA-vfmv-f93v-37mw","GO-2026-4364"],"summary":"Gitea does not properly validate repository ownership when linking attachments to releases","details":"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":[{"package":{"name":"github.com/go-gitea/gitea","ecosystem":"Go","purl":"pkg:golang/github.com/go-gitea/gitea"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.25.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-4xx9-vc8v-87hv/GHSA-4xx9-vc8v-87hv.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-20912"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/pull/36320"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/pull/36355"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30"},{"type":"WEB","url":"https://blog.gitea.com/release-of-1.25.4"},{"type":"PACKAGE","url":"https://github.com/go-gitea/gitea"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/releases/tag/v1.25.4"}],"database_specific":{"cwe_ids":["CWE-284"],"github_reviewed":true,"github_reviewed_at":"2026-01-23T20:14:52Z","nvd_published_at":"2026-01-22T22:16:19Z","severity":"MODERATE"},"severity":[{"type":"CVSS_V4","score":"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"}]}