CVE-2026-138207

Letta Code can discard permission settings after a parse failure

letta-ai · letta-code

First documented disclosure · Review checkpoint

Summary

Damaged global or project settings can silently remove tool denials and the intended permission mode.

Severity and exploitation evidence

Medium · 4.8/10 · CVSS 4.0. Severity source.

Exploitation not established: Public researcher or maintainer evidence establishes the reported behavior, not malicious exploitation or identified victims. No payload, package, model or proof of concept was executed during this review.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

The affected loader substitutes empty settings after parsing fails, and startup falls back to its unrestricted permission mode when no effective setting remains.

Conditions required

An existing settings file is malformed or unreadable before startup and an agent requests a tool that the lost settings would restrict. Explicit command-line permission-mode and disallowed-tool overrides are a separate, retained control.

Potential impact

Tools can run without the intended saved permission restrictions, subject to host permissions and independent isolation. No remote unauthenticated method of corrupting the settings is established.

Affected versions and configurations

The report tested 0.34.38; the CNA enumerates 0.34.0 through 0.34.71.

Fix and mitigation status

PR 5489 proposed a correction on November 3 but was closed unmerged on November 17. The original issue has later discussion but no verified released correction. A closed proposal must not be treated as a shipped fix.

Practical next steps

Validate settings before startup, use explicit CLI restrictions as an interim control, and stop execution when an existing permission file cannot be loaded.

Operating lesson

Policy load errors must retain or strengthen the intended restrictions.

Evidence and limits

Original disclosure was November 2. Fresh PR state corrects the CNA’s stale suggestion that the proposed patch is merely awaiting acceptance. Issuing CNA publication was 2026-11-29; this is distinct from the earlier original disclosure and any later index ingestion. Severity is VulDB CNA CVSS 4.0 Medium 4.8. CNA also supplies CVSS 3.1 Low 3.3.

Sources