CVE-2025-6101 letta-ai letta interface.py function_message eval injection

Medium 5.1 Published Updated

Attackers can execute arbitrary code via improper neutralization in the function_message interface of the letta-ai library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-6101?

CVE-2025-6101 is a medium-severity code injection vulnerability in letta-ai letta, published on 16 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-95, CWE-94

Which versions are affected by CVE-2025-6101?

How do I fix CVE-2025-6101?

No fix has been published for CVE-2025-6101 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-6101 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6101 exists.

Sources

Also known as GHSA-f28h-v254-c2wx.

Is CVE-2025-6101 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free