{"id":"CVE-2026-35597","state":"PUBLISHED","title":"Vikunja Affected by TOTP Brute-Force Due to Non-Functional Account Lockout","description":"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.","publishedAt":"2026-04-10T16:03:19.636Z","updatedAt":"2026-04-13T15:37:11.358Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["go-vikunja vikunja"],"affected":[{"vendor":"go-vikunja","product":"vikunja","versions":[{"version":"< 2.3.0","status":"affected"}]}],"references":["https://github.com/go-vikunja/vikunja/security/advisories/GHSA-fgfv-pv97-6cmj","https://github.com/go-vikunja/vikunja/pull/2576","https://github.com/go-vikunja/vikunja/commit/6ca0151d02fa0e8c7e2181ab916a28e08caaaec8","https://github.com/go-vikunja/vikunja/releases/tag/v2.3.0"],"weaknesses":["CWE-307"],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/35xxx/CVE-2026-35597.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-35597","state":"PUBLISHED","datePublished":"2026-04-10T16:03:19.636Z","dateUpdated":"2026-04-13T15:37:11.358Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-03T21:25:12.162Z"},"containers":{"cna":{"title":"Vikunja Affected by TOTP Brute-Force Due to Non-Functional Account Lockout","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"go-vikunja","product":"vikunja","versions":[{"version":"< 2.3.0","status":"affected"}]}],"references":[{"url":"https://github.com/go-vikunja/vikunja/security/advisories/GHSA-fgfv-pv97-6cmj","name":"https://github.com/go-vikunja/vikunja/security/advisories/GHSA-fgfv-pv97-6cmj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/go-vikunja/vikunja/pull/2576","name":"https://github.com/go-vikunja/vikunja/pull/2576","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-vikunja/vikunja/commit/6ca0151d02fa0e8c7e2181ab916a28e08caaaec8","name":"https://github.com/go-vikunja/vikunja/commit/6ca0151d02fa0e8c7e2181ab916a28e08caaaec8","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-vikunja/vikunja/releases/tag/v2.3.0","name":"https://github.com/go-vikunja/vikunja/releases/tag/v2.3.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-307","lang":"en","description":"CWE-307: Improper Restriction of Excessive Authentication Attempts","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-10T16:03:19.636Z"},"source":{"advisory":"GHSA-fgfv-pv97-6cmj","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/go-vikunja/vikunja/security/advisories/GHSA-fgfv-pv97-6cmj","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-13T15:28:33.633956Z","id":"CVE-2026-35597","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-13T15:37:11.358Z"}}]}}}