Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain adjacent network access
-
DeliveryAuthenticate with low-privilege credentials
-
ExploitSend malicious request to function_message endpoint
-
InstallInject code via manipulated function_name/function_args
-
C2Trigger dynamic code evaluation
-
ExecuteExecute arbitrary code with limited privileges
-
ImpactImpact 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
Affected Packages
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
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
Adjacent network access and low privileges required, with limited impact on all security dimensions.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionCVE.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
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.
Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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.
EUVD-2025-18359
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB