CVE-2021-45331
Reuse of one time passwords allowed in Gitea
Record from NVD · Published February 9, 2022
code.gitea.io/gitea is fixed in 1.5.0 (Go Modules)
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.
EPSS 1.43% · 73.8th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| code.gitea.io/gitea | Go Modules | 1.5.0 |
| gitea | Bitnami | 1.5.0 |
| gitea | gitea | 1.5.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gitea | gitea | 0 |
Timeline
- Feb 9, 2022 CVE Published
- Feb 10, 2022 EPSS Score (30 in total, the first dated here)
- Feb 14, 2022 CVE Updated
- Mar 17, 2026 Security Advisory
- Jul 16, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-45331
vulnetix vdb fixes CVE-2021-45331
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-45331/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart