{"cve":"CVE-2026-20779","nvd":{"published":"2026-07-03T21:16:56.543","modified":"2026-10-25T15:10:00.147","status":"Deferred","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","score":7.1},"cwes":["CWE-294"],"references":["https://blog.gitea.com/release-of-1.26.3-and-1.26.4/","https://github.com/go-gitea/gitea/pull/38151","https://github.com/go-gitea/gitea/releases/tag/v1.26.3","https://github.com/go-gitea/gitea/security/advisories/GHSA-gx3v-q759-g323","https://github.com/go-gitea/gitea/security/advisories/GHSA-gx3v-q759-g323"],"products":[],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-20779","score":0.00481,"percentile":0.41176,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-gx3v-q759-g323","url":"https://osv.dev/vulnerability/GHSA-gx3v-q759-g323","summary":"Gitea: TOTP TOCTOU race on web 2FA paths + missing replay check on Basic-Auth `X-Gitea-OTP` surface","modified":"2026-07-22T21:11:15.451515797Z","packages":[{"ecosystem":"Go","name":"code.gitea.io/gitea","purl":"pkg:golang/code.gitea.io/gitea","ranges":[">=1.5.0 <1.26.3"],"fixed":["1.26.3"]}]},{"id":"GO-2026-6057","url":"https://osv.dev/vulnerability/GO-2026-6057","summary":"Gitea: TOTP TOCTOU race on web 2FA paths + missing replay check on Basic-Auth `X-Gitea-OTP` surface in code.gitea.io/gitea","modified":"2026-07-22T21:00:26.799039419Z","packages":[{"ecosystem":"Go","name":"code.gitea.io/gitea","purl":"pkg:golang/code.gitea.io/gitea","ranges":[">=1.5.0 <1.26.3"],"fixed":["1.26.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}