Skip to main content
Vulnerability Database/CVE-2026-97365

CVE-2026-97365: chonkie-inc littrs Path Traversal Flaw

CVE-2026-97365 is a path traversal vulnerability in chonkie-inc littrs versions 0.6.1 and 0.6.2 that allows attackers to access unauthorized files. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97365 Overview

CVE-2026-97365 is a path traversal vulnerability [CWE-22] affecting chonkie-inc littrs versions 0.6.1 and 0.6.2. The flaw resides in the Sandbox::mount function within crates/littrs/src/lib.rs. An attacker can manipulate the relative argument to escape the intended sandbox directory and access files outside the permitted scope. The vulnerability is network-exploitable and requires low privileges, with no user interaction needed. The exploit has been publicly disclosed, and the vendor did not respond to early disclosure attempts.

Critical Impact

Remote attackers with low privileges can traverse directories beyond the sandbox boundary, exposing confidentiality, integrity, and availability of files accessible to the littrs process.

Affected Products

  • chonkie-inc littrs 0.6.1
  • chonkie-inc littrs 0.6.2
  • Affected component: Sandbox::mount in crates/littrs/src/lib.rs

Discovery Timeline

  • 2026-09-24 - CVE-2026-97365 published to NVD
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-97365

Vulnerability Analysis

The vulnerability stems from insufficient validation of the relative argument passed to Sandbox::mount. The function is intended to mount a path relative to a sandbox root, but it fails to canonicalize and verify that the resolved path remains within the sandbox boundary. An attacker supplying traversal sequences such as ../ can reach arbitrary paths on the filesystem.

Because littrs presents itself as a sandbox primitive, callers rely on Sandbox::mount to enforce containment. The absence of path normalization breaks that contract and provides a direct bypass of the isolation guarantee.

The public disclosure and lack of vendor response increase the exposure window for downstream users. Projects embedding littrs 0.6.1 or 0.6.2 inherit the weakness regardless of their own path handling.

Root Cause

The root cause is improper limitation of a pathname to a restricted directory [CWE-22]. Sandbox::mount accepts a user-controlled relative value and joins it to the sandbox base without canonicalizing the result or rejecting parent-directory references. Standard mitigations such as std::fs::canonicalize plus a prefix check against the sandbox root are not applied.

Attack Vector

An authenticated remote caller invokes functionality that reaches Sandbox::mount with a crafted relative value containing traversal sequences. The function resolves the path outside the sandbox root and mounts or exposes it. Depending on how the host application uses the mounted path, the attacker can read, modify, or disrupt files beyond the intended scope.

The vulnerability mechanism is described in prose only, as no verified exploit code is available. See the GitHub Security Advisory and VulDB CVE-2026-97365 for additional technical context.

Detection Methods for CVE-2026-97365

Indicators of Compromise

  • Log entries showing relative arguments to Sandbox::mount containing ../, ..\, URL-encoded traversal sequences (%2e%2e%2f), or absolute paths.
  • Filesystem access events from the littrs-hosting process touching paths outside the configured sandbox root.
  • Unexpected mounts or file descriptors opened against sensitive system directories such as /etc, /root, or user home directories.

Detection Strategies

  • Instrument the application calling littrs to log every Sandbox::mount invocation with the raw and canonicalized paths, then alert on mismatches.
  • Deploy static analysis rules that flag calls to Sandbox::mount where the relative argument is derived from untrusted input without prior validation.
  • Monitor runtime filesystem syscalls (openat, open, stat) from the littrs process and compare against the declared sandbox root.

Monitoring Recommendations

  • Enable verbose audit logging on hosts running littrs 0.6.1 or 0.6.2 and forward events to a centralized analytics platform.
  • Track Rust dependency manifests (Cargo.toml, Cargo.lock) across the environment to identify services pinned to vulnerable versions.
  • Correlate network requests reaching littrs-backed services with downstream filesystem activity to spot traversal attempts.

How to Mitigate CVE-2026-97365

Immediate Actions Required

  • Inventory all applications depending on chonkie-inc littrs 0.6.1 or 0.6.2 using Rust dependency tooling such as cargo tree.
  • Restrict exposure of any service that invokes Sandbox::mount with attacker-influenced arguments, isolating it behind authenticated internal networks.
  • Apply input validation at the caller: reject any relative argument containing .., null bytes, or absolute path indicators before invoking Sandbox::mount.

Patch Information

At the time of publication, no vendor patch is referenced in the NVD entry, and the project maintainers did not respond to the coordinated disclosure. Monitor the chonkie-inc littrs repository and the GitHub Security Advisory GHSA-j65r-rjxh-fgc4 for a fixed release and upgrade immediately when available.

Workarounds

  • Wrap Sandbox::mount calls with a canonicalization check: resolve the joined path with std::fs::canonicalize and verify it begins with the sandbox root.
  • Run the hosting process with the least privileges necessary and apply OS-level sandboxing such as seccomp, AppArmor, or SELinux to constrain filesystem access.
  • If feasible, pin dependencies to a version prior to 0.6.1 or fork littrs locally and apply a path-normalization patch until an upstream fix lands.
bash
# Configuration example: identify vulnerable littrs usage in a Rust workspace
cargo tree -i littrs
grep -R "Sandbox::mount" ./src

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.