Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-45331

Reuse of one time passwords allowed in Gitea

Overview

Published
9 Feb 2022
Modified
17 Jun 2026
Critical CVE
2 Registry packages
1 OS packages
1 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

9.8 · CRITICAL

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-287

Affected packages · 2

Packages affected by CVE-2021-45331
EcosystemPackageVulnerableFixed in
Bitnami gitea <1.5.0 1.5.0
Go code.gitea.io/gitea <1.5.0 1.5.0

Open a package to see all its vulnerabilities.

Operating systems · 4 fixes

alpine 4 releases · 1 package

fixed 4
gitea
alpine fixes for CVE-2021-45331
ReleasePackageFixed in
3.22 gitea 1.5.1-r0
3.23 gitea 1.5.1-r0
3.24 gitea 1.5.1-r0
edge gitea 1.5.1-r0

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.