Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. code.gitea.io/gitea
  4. ›
  5. CVE-2021-45331

CVE-2021-45331: Improper Authentication

February 10, 2022 (updated September 8, 2022)

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.

References

  • blog.gitea.io/2018/08/gitea-1.5.0-is-released/
  • github.com/advisories/GHSA-hfmf-q69j-6m5p
  • github.com/go-gitea/gitea/pull/3878
  • nvd.nist.gov/vuln/detail/CVE-2021-45331

Code Behaviors & Features

Detect and mitigate CVE-2021-45331 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.5.0

Fixed versions

  • 1.5.0

Solution

Upgrade to version 1.5.0 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

go/code.gitea.io/gitea/CVE-2021-45331.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:23 +0000.