CVE-2025-51482 Details
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.
A remote code execution vulnerability exists in Letta version 0.7.12, specifically within the 'letta.server.rest_api.routers.v1.tools.run_tool_from_source' function. This vulnerability allows remote attackers to execute arbitrary Python code and system commands by sending crafted payloads to the '/v1/tools/run' endpoint. The issue arises because the application fails to properly sandbox the execution environment, allowing dangerous modules and system functionalities to be accessed. If the Letta server is running as root, the executed commands could potentially gain root privileges.
Users can update to Letta version 0.8.17, which includes a patch for this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/letta-ai/letta | [email protected] | Product |
| https://github.com/letta-ai/letta/pull/2630 | [email protected] | ExploitIssue TrackingPatchVendor Advisory |
| https://www.gecko.security/blog/cve-2025-51482 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| letta letta | 0.7.12 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 7, 2025 | Initial Analysis | [email protected] |
| Jul 22, 2025 | CVE Modified | CISA-ADP |
| Jul 22, 2025 | New CVE Received | [email protected] |