CVE-2026-48790

turso-cli persists Turso platform JWT with world-readable (0o644) file permissions

Published Aug 11, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
Turso CLI is the command line interface (CLI) to the open-source database Turso. Versions prior to 1.0.26 persist the user's Turso platform JWT to `settings.json` using Viper's default `configPermissions` of `0o644`, leaving the credential file world-readable on standard Linux and macOS systems. Any other local UID on the host can read the file and recover the platform JWT, which grants full Turso platform access scoped to the user's organizations. Version 1.0.26 patches the issue.

Analysis

AI-generated

Technical impact

Turso CLI writes the platform JSON Web Token to a settings.json file using Viper with default permissions of 0o644, allowing any local user to read the credential. This exposes a token that grants the holder full access to the Turso platform for their organizations, effectively leaking confidential authentication information.

Affected Systems

The flaw appears in tursodatabase's turso-cli prior to release 1.0.26. Any installation on Linux or macOS that persists the token locally uses the insecure file permissions, and the affected component is the Viper configuration handling within the CLI.

Risk and Exploitability

The CVSS base score of 5.5 indicates moderate severity. The EPSS score of <1% suggests low likelihood of exploitation. Since the token is stored locally, the attack vector is local, requiring an attacker to have a user account on the same host. The token grants full platform access, but the overall impact is limited to systems with the vulnerable CLI installed. The issue is not listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to turso-cli version 1.0.26 or later
  • If upgrading is not immediately possible, change the permissions of the settings.json file to 600 to restrict access to the owning user
  • Remove the stored JWT from the file or supply the token via an environment variable to avoid persistent storage

Generated by OpenCVE AI on August 12, 2026 at 20:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-57f6-pvx8-hwj6 turso-cli persists Turso platform JWT with world-readable (0o644) file permissions
History
Type Values Removed Values Added
First Time appeared Tursodatabase
Tursodatabase turso-cli
Vendors & Products Tursodatabase
Tursodatabase turso-cli
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Turso CLI is the command line interface (CLI) to the open-source database Turso. Versions prior to 1.0.26 persist the user's Turso platform JWT to `settings.json` using Viper's default `configPermissions` of `0o644`, leaving the credential file world-readable on standard Linux and macOS systems. Any other local UID on the host can read the file and recover the platform JWT, which grants full Turso platform access scoped to the user's organizations. Version 1.0.26 patches the issue.
Title turso-cli persists Turso platform JWT with world-readable (0o644) file permissions
Weaknesses CWE-276
CWE-732
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-276

    Incorrect Default Permissions

  • CWE-732

    Incorrect Permission Assignment for Critical Resource

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 12, 2026, 10:13 PM
Reserved
May 22, 2026, 8:18 PM
Status
Deferred
Published
Aug 11, 2026, 6:17 PM
Modified
Oct 23, 2026, 9:10 PM