{"id":"CVE-2026-35597","summary":"Vikunja Affected by TOTP Brute-Force Due to Non-Functional Account Lockout","details":"Vikunja is an open-source self-hosted task management platform. Prior to 2.3.0, the TOTP failed-attempt lockout mechanism is non-functional due to a database transaction handling bug. When a TOTP validation fails, the login handler in pkg/routes/api/v1/login.go calls HandleFailedTOTPAuth and then unconditionally rolls back. HandleFailedTOTPAuth in pkg/user/totp.go uses an in-memory counter (key-value store) to track failed attempts. When the counter reaches 10, it calls user.SetStatus(s, StatusAccountLocked) on the same database session s. Because the login handler always rolls back after a TOTP failure, the StatusAccountLocked write is undone. The in-memory counter correctly increments past 10, so the lockout code executes on every subsequent attempt, but the database write is rolled back every time. This allows unlimited brute-force attempts against TOTP codes. This vulnerability is fixed in 2.3.0.","aliases":["GHSA-fgfv-pv97-6cmj","GO-2026-5362"],"modified":"2026-07-08T08:12:58.380515610Z","published":"2026-04-10T16:03:19.636Z","database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35597.json","cwe_ids":["CWE-307"]},"references":[{"type":"WEB","url":"https://github.com/go-vikunja/vikunja/releases/tag/v2.3.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35597.json"},{"type":"ADVISORY","url":"https://github.com/go-vikunja/vikunja/security/advisories/GHSA-fgfv-pv97-6cmj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35597"},{"type":"FIX","url":"https://github.com/go-vikunja/vikunja/commit/6ca0151d02fa0e8c7e2181ab916a28e08caaaec8"},{"type":"FIX","url":"https://github.com/go-vikunja/vikunja/pull/2576"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/go-vikunja/vikunja","events":[{"introduced":"0"},{"fixed":"28b537837f9808dc106c9058b5829c65759fddf2"},{"fixed":"6ca0151d02fa0e8c7e2181ab916a28e08caaaec8"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:vikunja:vikunja:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.3.0"}]}}],"versions":["v2.2.2","v2.2.1","v2.2.0","v2.1.0","v2.0.0","v1.1.0","v1.0.0","v1.0.0-rc4","v1.0.0-rc3","v1.0.0-rc2","v1.0.0-rc1","v1.0.0-rc0","v0.24.1","v0.23.0","v0.22.1","v0.22.0","v0.21.0","v0.20.4","v0.20.3","v0.20.1","v0.20.0","v0.19.2","v0.19.1","v0.19.0","v0.18.1","v0.18.0","v0.17.0","v0.16.0","v0.15.0","v0.14.0","v0.13","v0.12","v0.11","v0.10","v0.9","v0.8","v0.7","v0.6","v0.5","v0.4","v0.3","v0.2","v0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-35597.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}