Arbitrary Code Injection Affecting letta package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.1% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LETTA-11023292
  • published27 Jul 2025
  • disclosed22 Jul 2025
  • creditUnknown

Introduced: 22 Jul 2025

NewCVE-2025-51482  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

letta is a Create LLM agents with long-term memory and custom tools

Affected versions of this package are vulnerable to Arbitrary Code Injection via the run_local_dir_sandbox_directly function in the tool_execution_sandbox.py file. An attacker can execute arbitrary Python code and system commands by sending specially crafted payloads to the /v1/tools/run endpoint, bypassing intended sandbox restrictions.

References

CVSS Base Scores

version 4.0
version 3.1