CVE-2025-51482: letta · Code Injection
Affects lettaSource CVE Database V5
Not known to be exploited · public detection template (Nuclei) · CVSS 8.8 High.
Data as of 26 Oct 2026, 09:08 UTC
- EPSS
- 2.1% chance of exploitation in 30 days – higher than 81% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 22 Jul 2025
Detectable: evidence found.
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 26 Oct 2026.
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
European organizations should immediately audit their use of Letta AI and identify any instances of version 0.7.12 or other potentially vulnerable versions. Until an official patch is released, organizations should consider disabling or restricting access to the /v1/tools/run endpoint, especially from untrusted networks. Implement network-level controls such as IP whitelisting, VPN-only access, or web application firewalls (WAF) with custom rules to detect and block suspicious payloads targeting this endpoint. Employ runtime application self-protection (RASP) tools to monitor and block unauthorized code execution attempts. Conduct thorough logging and monitoring of API usage to detect anomalous activity indicative of exploitation attempts. Additionally, isolate Letta AI instances in segmented network zones with minimal privileges to limit lateral movement if compromised. Organizations should maintain close communication with Letta AI vendors for timely patch releases and apply updates promptly once available. Finally, conduct internal penetration testing and code reviews focusing on sandbox escape vectors to proactively identify similar vulnerabilities.
Description
Remote Code Execution in letta.server.rest_api.routers.v1.tools.run_tool_from_source in letta-ai Letta 0.7.12 allows remote attackers to execute arbitrary Python code and system commands via crafted payloads to the /v1/tools/run endpoint, bypassing intended sandbox restrictions.