Security mailing lists by PureSourceCode

CVE-2026-20779

HIGH 7.1CVSS 3.1

Gitea: TOTP TOCTOU race on web 2FA paths + missing replay check on Basic-Auth `X-Gitea-OTP` surface

Gitea versions from 1.5.0 before 1.26.3 have a TOTP single-use enforcement defect that allows a valid TOTP code to be accepted more than once across web two-factor authentication flows and the Basic Auth X-Gitea-OTP path.

Published
3 Jul 2026
Last modified
25 Oct 2026
Assigned by
88ee5874-cf24-4952-aea0-31affedb7ff2
NVD status
Deferred
Weakness
CWE-294
Also known as
GHSA-gx3v-q759-g323GO-2026-6057
Sources
NVDJSONOSV GHSA-gx3v-q759-g323JSONOSV GO-2026-6057JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 88ee5874-cf24-4952-aea0-31affedb7ff2 (Secondary) CVSS 3.1 HIGH 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
OSV GitHub CVSS 3.1 HIGH 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go code.gitea.io/gitea >= 1.5.0, < 1.26.3 1.26.3

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 3 Jul 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Jul 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 21 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.