| Título | Letta Letta Code 0.34.38 Improper Authorization |
|---|
| Descrição | Letta Code up to 0.34.38 fails open when a permission settings file exists but cannot be parsed. permissions.deny rules and the configured permission mode are dropped together, the agent starts in the unrestricted default, and a shell command or file write that was explicitly denied runs without approval as the invoking user. A generic JSON parse error is printed once, but it does not block the tool or mention permissions.
loadPermissions in src/permissions/loader.ts reads each settings file in a try whose catch is empty (lines 266-279), so an unparseable file contributes no rules. loadPermissionMode reuses it (lines 291-296), and applyStartupPermissionMode falls back to DEFAULT_PERMISSION_MODE = unrestricted (src/permissions/startup.ts lines 50-58; src/permissions/mode.ts line 10). checkPermission checks deny first, then the mode override (src/permissions/checker.ts lines 63-77 and 400-412); no deny rules plus unrestricted yields allow, and executeTool runs the tool (src/agent/approval-execution.ts line 303).
The trigger is an ordinary local event: a truncated write, a merge or sync conflict, a PR that lands a truncated project settings file, or the agent itself leaving the file half-written in a previous session. The project-level .letta/settings.json is a shared, version-controlled file, so one bad merge disables the guard for every developer and CI job that pulls it; an attacker only needs the unparseable file in place before the next launch and a way to get the model to request a command through untrusted repository content. Affected deployments keep deny rules and the mode in one of the three settings copies, including shared repositories, headless/CI jobs, and multi-agent sessions in the same directory. The shell tool is not sandboxed by default, so commands run with the user's access to the repo, home and network; CLI overrides --permission-mode and --disallowedTools are unaffected. This is not privilege escalation or remote code execution by itself. |
|---|
| Fonte | ⚠️ https://github.com/letta-ai/letta-code/issues/5462 |
|---|
| Utilizador | EM111 (UID 102699) |
|---|
| Submissão | 02/11/2026 18h58 (há 26 dias) |
|---|
| Moderação | 28/11/2026 08h28 (26 days later) |
|---|
| Estado | Aceite |
|---|
| Entrada VulDB | 445076 [letta-ai letta-code até 0.34.71 Permission Loader loader.ts loadPermissions] |
|---|
| Pontos | 20 |
|---|