CVE-2026-77936
9.8CriticalPublished Oct 20, 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.8-flash
Critical
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-1188
What an attacker gets
Unauthenticated remote attackers can execute arbitrary Python code and OS commands, or hijack the database. They only need network access to the exposed Letta API or PostgreSQL port.
Root cause
The default compose.yaml omits the LETTA_SERVER_SECURE environment variable, disabling authentication middleware across all API routes while simultaneously exposing PostgreSQL with default superuser credentials.
Affected versions
Letta through 0.16.8
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Fixed version not specified in the advisory. Mitigate immediately by setting LETTA_SERVER_SECURE=true in your environment/compose.yaml and binding the PostgreSQL port to localhost or removing its public port mapping.
$ sed -i '/environment:/a\ - LETTA_SERVER_SECURE=true' compose.yaml && docker compose up -dAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
Letta through 0.16.8 ships a compose.yaml that does not enable LETTA_SERVER_SECURE, so the password middleware is never added and all API routes are unauthenticated, and it exposes a superuser PostgreSQL port with default credentials. Remote attackers can execute arbitrary Python via POST /v1/tools/run, manage /v1/admin users, or run OS commands via COPY PROGRAM.
References
- https://github.com/letta-ai/letta/blob/1131535716e8a31c9a437f8695e25ac98f203a24/compose.yaml#L17
- https://github.com/letta-ai/letta/blob/1131535716e8a31c9a437f8695e25ac98f203a24/letta/server/rest_api/app.py#L799
- https://www.lasso.security/vulnerability-database/cve-2026-77936
- https://www.vulncheck.com/advisories/letta-through-0.16.8-insecure-default-configuration-unauthenticated-api-and-postgresql-access
Related Critical CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1183259.3CriticalUnauthenticated attackers can gain full administrative access to BioTime Pro. They need to extract hard-coded cryptographic constants from the application binary to bypass authentication.
- CVE-2026-1183239.3CriticalUnauthenticated remote attackers can execute arbitrary OS commands as the application user. This requires network access to the language-management endpoint.
- CVE-2026-14488410.0CriticalRemote attackers can achieve unauthenticated code execution on the device. This is a stack-based buffer overflow triggered by sending malicious input to the web interface.
- CVE-2026-1261119.0CriticalAuthenticated users with scripting permissions can execute arbitrary code on the server. This requires the attacker to have the Scripting Developer role and scripting enabled.
- CVE-2026-1261069.2CriticalUnauthenticated attackers can bypass authentication to gain full access as any user, including administrators. This affects accounts provisioned via SAML, LDAP, or CAS that lack secure password hashes.
- CVE-2026-1260999.4CriticalAuthenticated attackers can execute arbitrary Java code and OS commands on the server. This requires access to edit templates, containers, or widgets.