Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-45331

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-45331
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:13 UTC · Revision 1

Source evidence

CVE-2021-45331

core-osv · Original source

Published 9 Feb 2022, 18:15 UTC

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.

osv:CVE-2021-45331
Complete source record
{
  "id": "d4ec23481778597e38f61fc6f90df8c5aed1a1aee7210bb2002de29dacc8befe",
  "url": "https://osv.dev/vulnerability/CVE-2021-45331",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-45331",
    "summary": "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.",
    "evidence": "osv:CVE-2021-45331",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-45331",
      "aliases": [
        "BIT-gitea-2021-45331",
        "CVE-2021-45331",
        "GHSA-hfmf-q69j-6m5p",
        "GO-2022-0315"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/go-gitea/gitea",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "280ebcbf7c761a212fb091634384847a38f25cb0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.5.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.1.0",
            "v1.0.0",
            "v0.9.99"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45331.json"
          }
        }
      ],
      "modified": "2026-10-27T02:46:09.934453928Z",
      "provider": "osv",
      "references": [
        "https://blog.gitea.io/2018/08/gitea-1.5.0-is-released/",
        "https://github.com/go-gitea/gitea/pull/3878"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "gitea:gitea",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.5.0"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-45331",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 460108,
  "published_at": "2022-02-09T18:15:10.013+00:00"
}