CVE-2026-20779
HIGH 7.1CVSS 3.1Gitea: 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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | code.gitea.io/gitea | >= 1.5.0, < 1.26.3 | 1.26.3 |
References
- https://blog.gitea.com/release-of-1.26.3-and-1.26.4/ · WEB
- https://github.com/go-gitea/gitea/pull/38151 · WEB
- https://github.com/go-gitea/gitea/releases/tag/v1.26.3 · WEB
- https://github.com/go-gitea/gitea/security/advisories/GHSA-gx3v-q759-g323 · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-20779 · ADVISORY
- https://github.com/go-gitea/gitea/commit/99f8b3d9a1d32f4c39828e07971455a18191e0b9 · WEB
- https://github.com/go-gitea/gitea · PACKAGE
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)