# CVE-2026-35597: Vikunja Affected by TOTP Brute-Force Due to Non-Functional Account Lockout

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-10T15:34:14.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-fgfv-pv97-6cmj, GO-2026-5362
- Weaknesses: CWE-307
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- go-vikunja vikunja: < 2.3.0
- code.vikunja.io/api (Go): before 2.3.0; all versions
- vikunja vikunja: before 2.3.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/go-vikunja/vikunja/security/advisories/GHSA-fgfv-pv97-6cmj> (exploit, advisory, vendor-advisory, web)
- <https://github.com/go-vikunja/vikunja/pull/2576> (issue-tracking, web)
- <https://github.com/go-vikunja/vikunja/commit/6ca0151d02fa0e8c7e2181ab916a28e08caaaec8> (patch, web)
- <https://github.com/go-vikunja/vikunja/releases/tag/v2.3.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35597> (advisory)
- <https://github.com/go-vikunja/vikunja> (package)

## Sources

- CVE List: [CVE-2026-35597](https://www.cve.org/CVERecord?id=CVE-2026-35597), CVE Terms of Use, modified 2026-04-13
- GitHub Advisory Database: [GHSA-fgfv-pv97-6cmj](https://github.com/advisories/GHSA-fgfv-pv97-6cmj), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5362](https://pkg.go.dev/vuln/GO-2026-5362), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-35597](https://nvd.nist.gov/vuln/detail/CVE-2026-35597), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-35597 · Whole record: https://cve.day/CVE-2026-35597.json · Rebuilt by cve.day 2026-11-25T22:59:18.508Z
