SecurityContext

CVE-2026-123002: Gitea - Two-Factor Authentication Bypass

  • Cve: CVE-2026-123002
  • Name: Gitea - Two-Factor Authentication Bypass
  • Description: Gitea accepted an unlimited number of wrong TOTP passcodes during sign-in, in the password reset flow and for Basic authentication with the `X-Gitea-OTP` header. An attacker who already knows an account's password could guess the six-digit passcode by trying codes at a high rate and sign in despite two-factor authentication. After five failed passcodes, further attempts for the account are now refused for 15 minutes.
  • Impact: Attackers with a known password can brute-force the TOTP code and bypass two-factor authentication, gaining unauthorized account access.
  • Remediation: Update to the latest version of Gitea, which limits failed TOTP attempts to five before a 15-minute lockout.
  • Vulnerability type: broken_authentication
  • Vulnerability impact: privilege_escalation
  • Requirement type: logged_in
  • Requirements: Attacker needs to know the account password
  • Labels source: securitycontext
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.0038
  • Epss percentile: 0.32418
  • Assignee: 88ee5874-cf24-4952-aea0-31affedb7ff2
  • Published at: 2026-11-15T22:17:18Z
  • Age in days: 9
  • Modified at: 2026-11-16T22:18:15Z
  • Patch available: yes
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-123002
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-307Improper Restriction of Excessive Authentication Attempts

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://blog.gitea.com/release-of-28.4.0/
https://github.com/go-gitea/gitea/pull/39993
https://github.com/go-gitea/gitea/pull/40374
https://github.com/go-gitea/gitea/releases/tag/v28.4.0
https://github.com/go-gitea/gitea/security/advisories/GHSA-5mx6-8rwm-52wf

Products

ProductAffectedPlatform boundSourcesUrl
gitea:gitea< 28.4.0nocna_alias/v1/products/gitea/gitea

Projects

RepositoryLink kindsIndexedUrl
go-gitea/giteapull, releases, security_advisoryyes/v1/repositories/go-gitea/gitea

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 33493
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports