{"id":"CVE-2021-45331","aliases":["ALPINE-CVE-2021-45331","BIT-gitea-2021-45331","EUVD-2022-1043","GHSA-hfmf-q69j-6m5p","GO-2022-0315"],"status":"published","title":"Reuse of one time passwords allowed in Gitea","description":"An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.01435,"percentile":0.73253,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-287"],"published":"2022-02-09T17:22:44Z","modified":"2026-11-03T06:32:41Z","fixes":[{"ecosystem":"Go","package":"code.gitea.io/gitea","fixed_in":["1.5.0"],"sources":["ghsa","osv"]},{"ecosystem":"Alpine:v3.16","package":"gitea","fixed_in":["1.5.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"gitea","fixed_in":["1.5.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"gitea","fixed_in":["1.5.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"gitea","fixed_in":["1.5.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"gitea","fixed_in":["1.5.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"gitea","fixed_in":["1.5.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"gitea","fixed_in":["1.5.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"gitea","fixed_in":["1.5.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"gitea","fixed_in":["1.5.1-r0"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"gitea","fixed_in":["1.5.0"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"code.gitea.io/gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1-r0"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.5.0"}]}]},{"source":"osv","ecosystem":"Go","package":"code.gitea.io/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.5.0"}]}]},{"source":"osv","ecosystem":"Go","package":"code.gitea.io/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.5.0"}]}]}],"products":[{"vendor":"gitea","product":"gitea"}],"references":[{"url":"https://blog.gitea.io/2018/08/gitea-1.5.0-is-released/","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/3878","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45331","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-hfmf-q69j-6m5p","tags":["advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-45331","tags":["advisory"]},{"url":"https://blog.gitea.io/2018/08/gitea-1.5.0-is-released","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-45331","description":"An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.","status":"published","published":"2022-02-09T17:22:44Z","modified":"2024-08-04T04:39:20.655Z","updated_at":"2026-11-02T14:33:02.930115Z"}],"euvd":[{"id":"EUVD-2022-1043","description":"An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.","status":"published","published":"2022-02-09T17:22:44Z","modified":"2024-08-04T04:39:20Z","updated_at":"2026-11-03T03:08:27.448176Z"}],"ghsa":[{"id":"GHSA-hfmf-q69j-6m5p","title":"Reuse of one time passwords allowed in Gitea","description":"An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.","status":"published","published":"2022-02-10T00:00:22Z","modified":"2023-09-15T20:18:29Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-287"],"updated_at":"2026-11-02T14:37:05.567008Z"}],"nvd":[{"id":"CVE-2021-45331","description":"An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.","status":"published","published":"2022-02-09T18:15:10.013Z","modified":"2026-06-17T04:13:16.633Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-287"],"updated_at":"2026-11-02T14:07:04.6896Z"}],"osv":[{"id":"ALPINE-CVE-2021-45331","description":"An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.","status":"published","published":"2022-02-09T18:15:10.013Z","modified":"2026-11-03T06:32:41.654240223Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T07:17:02.90744Z"},{"id":"CVE-2021-45331","description":"An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.","status":"published","published":"2022-02-09T18:15:10.013Z","modified":"2026-10-27T02:46:09.934453928Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:22.18434Z"},{"id":"GHSA-hfmf-q69j-6m5p","title":"Reuse of one time passwords allowed in Gitea","description":"An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.","status":"published","published":"2022-02-10T00:00:22Z","modified":"2024-08-21T14:56:46.711542Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-287"],"updated_at":"2026-11-02T15:46:48.920784Z"},{"id":"BIT-gitea-2021-45331","description":"An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.","status":"published","published":"2024-03-06T10:53:52.704Z","modified":"2026-09-08T08:47:33.623815182Z","updated_at":"2026-11-02T15:28:29.999658Z"},{"id":"GO-2022-0315","title":"Reuse of one time passwords allowed in Gitea in code.gitea.io/gitea","description":"Reuse of one time passwords allowed in Gitea in code.gitea.io/gitea","status":"published","published":"2024-08-21T14:30:29Z","modified":"2026-03-03T04:52:07.604662Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
