CVE-2024-21635 Memos Access Tokens Stay Valid after User Password Change
Attackers retain account access via valid tokens after password changes, requiring manual token deletion to secure compromised accounts.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-21635?
CVE-2024-21635 is a high-severity authentication bypass vulnerability in Usememos Memos, published on 14 Nov 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Memos is a privacy-first, lightweight note-taking service that uses Access Tokens to authenticate application access. When a user changes their password, the existing list of Access Tokens stay valid instead of expiring. If a user finds that their account has been compromised, they can update their password. In versions up to and including 0.18.1, though, the bad actor will still have access to their account because the bad actor's Access Token stays on the list as a valid token. The user will have to manually delete the bad actor's Access Token to secure their account. The list of Access Tokens has a generic Description which makes it hard to pinpoint a bad actor in a list of Access Tokens. A known patched version of Memos isn't available. To improve Memos security, all Access Tokens will need to be revoked when a user changes their password. This removes the session for all the user's devices and prompts the user to log in again. One can treat the old Access Tokens as "invalid" because those Access Tokens were created with the older password.
Weakness: CWE-287
Which versions are affected by CVE-2024-21635?
3 open source packages ship an affected version, including github.com/usememos/memos. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/usememos/memos Go | All versions | None |
github.com/usememos/memos Go | All versions | 0.18.2 |
github.com/usememos/memos Go | All versions | 0.18.2 |
Products include Usememos Memos.
How do I fix CVE-2024-21635?
Upgrade github.com/usememos/memos to 0.18.2 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2024-21635 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21635 exists.
Other vulnerabilities in Usememos Memos
- CVE-2025-50738 Memos has Cross-Site Scripting (XSS) Vulnerability in Image URLs
- CVE-2025-22952 Memos Server-Side Request Forgery (SSRF)
- CVE-2023-0109 Stored XSS in usememos/memos
- CVE-2023-4696 Improper Access Control in usememos/memos
- CVE-2022-4866 Cross-site Scripting (XSS) - Stored in usememos/memos
Sources
Also known as GHSA-mr34-8733-grr2, GO-2025-4127.