{"id":"CVE-2026-35597","published":"2026-04-10T16:03:19Z","modified":"2026-04-13T15:37:11Z","title":"Vikunja Affected by TOTP Brute-Force Due to Non-Functional Account Lockout","vendor":"go-vikunja","product":"vikunja","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00489,"percentile":0.34912,"provenance":"source"},"cwes":[{"id":"CWE-307","name":"Improper Restriction of Excessive Authentication Attempts"}],"references":[{"url":"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","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-vikunja/vikunja/commit/6ca0151d02fa0e8c7e2181ab916a28e08caaaec8","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-vikunja/vikunja/releases/tag/v2.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.1,"factors":[{"name":"EPSS percentile","points":6.98},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"go-vikunja","affectedVersions":[{"vendor":"go-vikunja","product":"vikunja","versions":["< 2.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-13T15:28:33.633956Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"code.vikunja.io/api","vulnerableRanges":["<2.3.0","all versions"],"patched":["2.3.0"],"from":["GHSA-fgfv-pv97-6cmj","GO-2026-5362"],"provenance":"source"}],"summary":{"text":"Vikunja, an open-source self-hosted task management platform, prior to 2.3.0 has a TOTP failed-attempt lockout that never takes effect because a database rollback undoes the account-locked write after every failed TOTP validation in the login handler. An attacker with network access who already has a user's password (no user interaction required) can make unlimited brute-force attempts against that account's TOTP codes, since the lockout never persists.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:27Z"},"euvd":{"id":"EUVD-2026-21422","exploited":false,"provenance":"source"}}