CVE-2025-6101: letta · Improper Neutralization of Directives in Dynamically Evaluated Code
Affects lettaSource CVE Database V5
Not known to be exploited · CVSS 5.1 Medium.
Data as of 26 Oct 2026, 07:57 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 22% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 16 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIletta-ai/lettapkg:pypi/letta-ai/lettaOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Immediate mitigation should focus on restricting access to the letta-ai letta service to trusted network segments only, minimizing exposure to adjacent network attackers. 2. Implement strict input validation and sanitization on all inputs to the function_message function, especially function_name and function_args, to neutralize any potentially malicious directives before dynamic evaluation. 3. Employ runtime application self-protection (RASP) or similar monitoring tools to detect anomalous code execution patterns indicative of exploitation attempts. 4. If possible, disable or limit dynamic code evaluation features in letta until a patched version is available. 5. Monitor vendor communications closely for official patches or updates addressing this vulnerability and apply them promptly. 6. Conduct internal audits of AI-related workflows using letta to identify and isolate critical data or processes that could be targeted. 7. Enhance network segmentation and implement strict access controls to reduce the risk of lateral movement by attackers exploiting this vulnerability. 8. Educate development and operations teams about the risks of dynamic code evaluation and enforce secure coding practices to prevent similar issues in future releases.
Description
A vulnerability classified as critical has been found in letta-ai letta up to 0.4.1. Affected is the function function_message of the file letta/letta/interface.py. The manipulation of the argument function_name/function_args leads to improper neutralization of directives in dynamically evaluated code. The exploit has been disclosed to the public and may be used.