CVE-2025-51482
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Mitigation
The record names no fix. Check the vendor advisory below.
References
Timeline
Days relative to CVE publicationFirst public PoC 9.3 days after publication; not in CISA KEV. First PoC: Kai-One001/Letta-CVE-2025-51482-RCE (created 31 Jul 2025, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs · 1 not a PoC
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Kai-One001/Letta-CVE-2025-51482-RCE | 31 Jul 2025 +9.3 d | 1 | PoC |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| c0gnit00/CVE-2024-51482 | 10 Jul 2026 +353 d | 0 | Not a PoC · unrelated |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Letta Letta 0.7.12 - Remote Code Execution | 29 Oct 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /v1/tools/run
- Body markers
"source_code""args""json_schema""env_vars""name":"test"inapplication/json- Ports
- 8000, 8283
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.5615.50 Safari/537.36- Seen in
- 1 repo: Kai-One001/Letta-CVE-2025-51482-RCE
- Evidence
- Kai-One001/Letta-CVE-2025-51482-RCE/RCE.py:49
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/v1/tools/run(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8000,8283] (msg:"GG PoC-Monitor CVE-2025-51482 CVE-2025-51482 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/v1/tools/run"; http.request_body; content:"|22|source_code|22|"; http.request_body; content:"|22|args|22|"; http.request_body; content:"|22|json_schema|22|"; http.request_body; content:"|22|env_vars|22|"; http.request_body; content:"|22|name|22|:|22|test|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-51482; classtype:web-application-attack; sid:9013332; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: CVE-2025-51482 exploit attempt (CVE-2025-51482)
id: gg-pocmon-cve-2025-51482-9013332
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-51482. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-51482
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/v1/tools/run'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.51482