Vulnerability · Published Feb 9, 2022 · Assigned by mitre
CVE-2021-45331
Critical 9.8
In plain English
A critical-severity security flaw in the gitea package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)1.4%top 26.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | gitea | 1.5.1-r0 | ALPINE-CVE-2021-45331 |
| Alpine:v3.21 | gitea | 1.5.1-r0 | ALPINE-CVE-2021-45331 |
| Alpine:v3.22 | gitea | 1.5.1-r0 | ALPINE-CVE-2021-45331 |
| Alpine:v3.23 | gitea | 1.5.1-r0 | ALPINE-CVE-2021-45331 |
| Alpine:v3.24 | gitea | 1.5.1-r0 | ALPINE-CVE-2021-45331 |
| Go | code.gitea.io/gitea | 1.5.0 | GHSA-hfmf-q69j-6m5p |
| Go | code.gitea.io/gitea | 1.5.0 | GO-2022-0315 |
Affected products (as reported)
References
- https://blog.gitea.io/2018/08/gitea-1.5.0-is-released/ x_refsource_MISC
- https://github.com/go-gitea/gitea/pull/3878 x_refsource_MISC