CVE-2024-39025: Letta (previously MemGPT) incorrect access control vulnerability
Letta (formerly MemGPT) v0.3.17 has incorrect access control on its /users admin endpoint, so an unauthenticated network attacker can read sensitive data. The advisory lists no patched version. Teams running the Letta REST server should keep it off untrusted networks.
Published Dec 27, 2024 · Updated Jan 2, 2025 · Analysis Nov 1, 2026
What an attacker can do
The advisory states only that access control on the /users endpoint of MemGPT v0.3.17 is incorrect and exposes sensitive data. In the source of memgpt/server/rest_api/admin/users.py at tag 0.3.17, the admin routes carry no authentication dependency. The file shows GET /users, which returns user IDs, POST /users, which creates a user and returns the new user's ID and API key, and GET /users/keys, DELETE /users/keys and POST /users/keys for API keys. Whether any middleware elsewhere enforces authentication was not confirmed from the files we read.
The CVSS vector shows network access, no privileges and no user interaction, with high confidentiality impact only. In practice, an attacker who reaches the server can list user IDs and, from them, request those users' API keys. With those keys they can use the server as that user: read agent memory and conversation data, and run agents that spend your LLM credits.
The same file also prints the key list to the server log in one handler, which spreads keys into log storage.
Who is affected
letta (pip) 0.3.17 and earlier; the advisory names MemGPT v0.3.17. No fixed release is listed. Check your version:
pip show lettaExposed servers are those that run the REST API where untrusted clients can reach it.
letta
- Ecosystem
- PyPI
- Affected
- <= 0.3.17
- Fixed in
- No patched version yet
- Check
pip show letta
How to fix it
The advisory lists no patched version, and the sources give no workaround. Check the Letta releases for a version after 0.3.17 and upgrade.
Until then, bind the server to localhost or a private network, put an authenticating reverse proxy in front of it, and block the /users paths for anyone who is not an administrator. Rotate API keys if the server was reachable by others.
How to tell if you were hit
Look in access logs for requests to /users and /users/keys from addresses that are not administrators. Look for the log line starting TOKENS, which the key-listing handler prints, and treat any key shown there as exposed. Review the user list for accounts you did not create, and check for unexpected agent runs or LLM spend.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Incorrect access control in the /users endpoint of Cpacker MemGPT v0.3.17 allows attackers to access sensitive data.
Questions
- What does CVE-2024-39025 expose?
The advisory says sensitive data on the /users endpoint. In the 0.3.17 source, that route group covers user IDs and API keys, which are the likely data at risk.
- Does it need a login?
The CVSS vector requires no privileges. The admin route file shows no authentication dependency, though other layers were not checked.
- Is there a fixed Letta version?
None is listed. Versions up to 0.3.17 are affected, so check the release notes for newer ones.
References
Read for this analysis:
- https://github.com/advisories/GHSA-7p2g-2vxc-5g55
- https://github.com/letta-ai/letta/blob/0.3.17/memgpt/server/rest_api/admin/users.py
- https://nvd.nist.gov/vuln/detail/CVE-2024-39025
- https://github.com/letta-ai/letta/releases/tag/0.3.17
- https://medium.com/@cnetsec/a-vulnerability-cve-2024-39025-has-been-identified-in-lettaai-memgpt-v0-3-17-146cb38bb6db
- https://github.com/letta-ai/letta/blob/0.3.17/memgpt/server/rest_api/admin/users.py#L55-L68
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
