Skip to main content

letta EUVDEUVD-2025-18359

| CVE-2025-6101 LOW
Code Injection (CWE-94)
2025-06-16 cna@vuldb.com
2.0
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain adjacent network access
  2. Delivery
    Authenticate with low-privilege credentials
  3. Exploit
    Send malicious request to function_message endpoint
  4. Install
    Inject code via manipulated function_name/function_args
  5. C2
    Trigger dynamic code evaluation
  6. Execute
    Execute arbitrary code with limited privileges
  7. Impact
    Impact confidentiality, integrity, and availability.

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must have network adjacency to the vulnerable letta instance (not remote over the internet) and possess a valid low-privilege account. Exploitation involves targeting the function_message method in interface.py, which dynamically evaluates the function_name or function_args parameters without proper neutralization. No user interaction is required, and the vulnerability is present in the default configuration of affected versions.

Impact

CVSS v4.0 vector indicates adjacent network attack vector, low attack complexity, low privileges required, and no user interaction, but only low impacts on confidentiality, integrity, and availability, resulting in a low overall score (2.0). EPSS probability is 0.05% (14th percentile), suggesting low likelihood of widespread exploitation. Public exploit code is available, lowering the barrier for targeted attacks. Real-world risk is limited by the adjacent network requirement and low privilege level, making this more of a threat in specific internal network environments rather than a broad internet-wide issue.

Exploit ScenarioDerived

An attacker on the same network segment with a low-privilege account sends a crafted request to the function_message endpoint, injecting malicious Python code via function_name or function_args. The server dynamically evaluates the input, leading to execution of attacker-controlled code with limited impact on data confidentiality, integrity, and system availability.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Jul 26, 2026

Code injection vulnerability in letta-ai letta up to version 0.4.1 allows authenticated adjacent network attackers to execute arbitrary Python code by manipulating the function_name or function_args arguments in the function_message method. Public exploit code exists, but no active exploitation has been confirmed by CISA.

Earlier versions of this analysis (1)
v1 Mar 14, 2026 - 21:59 CVSS 5.5

RemediationAI

No official patch has been released at the time of analysis. Monitor the GitHub issue #2613 for a fix and upgrade to a patched version as soon as one is available. As a temporary workaround, restrict network access to the letta interface to trusted hosts only, as the attack requires adjacent network connectivity. Additionally, ensure that only highly trusted users hold low-privilege accounts, and consider disabling the dynamic function evaluation feature if feasible until an update is applied. These measures may limit exploitability but do not fully eliminate the risk.

Affected VersionsENISA

letta 0.4.1
letta 0.4.0

Affected Packages

euvd letta no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the function_message function within letta/letta/interface.py of the letta-ai letta Python library, which facilitates LLM agent interactions. The root cause is improper neutralization of directives in dynamically evaluated code (CWE-94), likely due to use of eval() or exec() on user-supplied function_name and function_args without sanitization. Impacted versions are specifically 0.4.0 and 0.4.1 of the letta package.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 2.0 LOW
CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.5 MEDIUM

Adjacent network access and low privileges required, with limited impact on all security dimensions.

3.1 AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:A/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Adjacent
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Apr 29, 2026 - 01:11 NVD
MEDIUM LOW
CVSS changed
Apr 29, 2026 - 01:11 NVD
5.5 (MEDIUM) 2.0 (LOW)
CVE Published
Jun 16, 2025 - 03:15 nvd
MEDIUM 5.5

DescriptionCVE.org

A vulnerability classified as critical has been found in letta-ai letta up to 0.4.1. Affected is the function function_message of the file letta/letta/interface.py. The manipulation of the argument function_name/function_args leads to improper neutralization of directives in dynamically evaluated code. The exploit has been disclosed to the public and may be used.

Executive ViewAI

Why It Matters

Organizations using letta-ai letta should be aware of moderate risk from CVE-2025-6101, a code injection vulnerability rated CVSS 5.5. Exploitation could allow attackers to execute code or inject malicious input. Organizations should apply vendor updates when available and monitor for exploitation.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Prevalence
Low
niche open-source AI agent framework
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy