CVE-2021-45331 json
Reuse of one time passwords allowed in Gitea
published 4y ago modified 2mo 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
- github.com/go-gitea/gitea#3878 pull request
Is CVE-2021-45331 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.44% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-09).
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
-
- CWE-287 Improper Authentication
References
-
github.com
/go-gitea/gitea/pull/3878
web, patch, third-party-advisory, advisory
-
blog.gitea.io
/2018/08/gitea-1.5.0-is-released/
release-notes, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-45331
advisory, web
-
blog.gitea.io
/2018/08/gitea-1.5.0-is-released
web
-
github.com
/advisories/GHSA-hfmf-q69j-6m5p
advisory
Sources
- CVE List CVE-2021-45331
- GitHub Advisory GHSA-hfmf-q69j-6m5p
- NVD CVE-2021-45331
- OSV BIT-gitea-2021-45331
- OSV GO-2022-0315
Fencer Intel 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.