Live threats

All CVEs / Gitea

CVE-2021-45331Gitea

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.4%
probability of exploitation in 30 days · percentile 73
Auth required
No
Published
Feb 9, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-287
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gitea.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go code.gitea.io/gitea < 1.5.0 1.5.0 go get code.gitea.io/gitea@v1.5.0
Go code.gitea.io/gitea < 1.5.0 1.5.0 go get code.gitea.io/gitea@v1.5.0

Per OSV / GitHub Advisories (GHSA-hfmf-q69j-6m5p, GO-2022-0315). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
giteagitea< 1.5.0

Official sources

References

Links published by the sources. Open them with care.