CVE-2024-21635
JSON

7.1high

Memos Access Tokens Stay Valid after User Password Change

Severity
7.1high CVSS:4.0 by GitHub_M
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-mr34-8733-grr2GO-2025-4127

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.

Affected

Product or packageVersionsReported by
usememos memos<= 0.18.1, up to 0.18.1CVE List, NVD
github.com/usememos/memos (Go)before 0.18.2, all versionsGitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-287

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Summary

Access Tokens are used 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.

The bad actor though 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.

Details

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. You can treat the old Access Tokens as "invalid" because those Access Tokens were created with the older password.

PoC
  1. Have 2 devices on hand
  2. Log onto your Memos account on both devices. Notice how Access Tokens are created for each.
  3. On one device, successfully change the password. Refresh the page on the 2nd device and notice how it doesn't log out the user.
  4. On the 2nd device, change the password again. Refresh the page on the 1st device and notice how it doesn't log out the user.
Impact

A bad actor will still have access to the user's account because the Access Token does not expire on a password update. Having multi-factor authentication will vastly improve account security in Account Takeover cases instead of just relying on a password.

Go Vulnerability Database

Memos' Access Tokens Stay Valid after User Password Change in github.com/usememos/memos

NVD (es)

Memos es un servicio de toma de notas ligero que prioriza la privacidad y utiliza Tokens de Acceso para autenticar el acceso a la aplicación. Cuando un usuario cambia su contraseña, la lista existente de Tokens de Acceso permanece válida en lugar de caducar. Si un usuario descubre que su cuenta ha sido comprometida, puede actualizar su contraseña. Sin embargo, en versiones hasta la 0.18.1 inclusive, el actor malicioso seguirá teniendo acceso a su cuenta porque el Token de Acceso del actor malicioso permanece en la lista como un token válido. El usuario tendrá que eliminar manualmente el Token de Acceso del actor malicioso para asegurar su cuenta. La lista de Tokens de Acceso tiene una Descripción genérica, lo que dificulta identificar a un actor malicioso en una lista de Tokens de Acceso. Una versión parcheada conocida de Memos no está disponible. Para mejorar la seguridad de Memos, todos los Tokens de Acceso deberán ser revocados cuando un usuario cambie su contraseña. Esto elimina la sesión para todos los dispositivos del usuario y solicita al usuario que inicie sesión de nuevo. Se pueden tratar los Tokens de Acceso antiguos como 'inválidos' porque esos Tokens de Acceso fueron creados con la contraseña anterior.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21635 changed 2025-11-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-mr34-8733-grr2 changed 2026-03-13CC-BY-4.0
Go Vulnerability DatabaseGO-2025-4127 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-21635 changed 2026-10-02Public domain