Skip to content
Fencer Vulns
critical 9.8

CVE-2021-45331 json

Reuse of one time passwords allowed in Gitea

published 2022-02-09 4 y ago modified 2026-09-08 2 mo ago also BIT-gitea-2021-45331 , EUVD-2022-1043 , GHSA-hfmf-q69j-6m5p , GO-2022-0315

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.4%
EPSS 1.4% chance of exploitation in 30 days, percentile 73%
public exploits
0
none known

Summary

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.

Patch / fix

  • go code.gitea.io/gitea 1.5.0
  • bitnami gitea 1.5.0
  • gitea gitea 1.5.0
  • gitea Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 1.5.1-r0

alpine advisories ALPINE-CVE-2021-45331

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Exploit prediction

1.44% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P
OSV 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
go code.gitea.io/gitea
<1.5.0
1.5.0
bitnami gitea
<1.5.0
1.5.0

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.