Description
rtk filters and compresses command outputs before they reach your LLM context. Prior to 0.32.0, RTK (Rust Token Killer) improperly trusts project-local configuration files. RTK automatically loads .rtk/filters.toml from the working directory with highest priority and without user notification. An attacker can place a malicious filter file in a repository to apply regex-based modifications (e.g., strip_lines_matching) to shell command output before it is shown to the LLM, without any indication that the output has been modified. This allows attackers to selectively suppress or alter command output (including file contents, diffs, and security scan results) without detection, potentially concealing malicious code during AI-assisted development or review. This vulnerability is fixed in 0.32.0.
Published: 2026-06-23
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

RTK filters and compresses command outputs before they reach the LLM context. Prior to version 0.32.0, RTK (Rust Token Killer) incorrectly trusts project‑local configuration files, automatically loading .rtk/filters.toml from the working directory with the highest priority and without alerting users. This behavior constitutes a trust of user‑supplied configuration, a weakness that falls under CWE‑426 (Untrusted Search Path) and also results in information tampering consistent with CWE‑345 (Information Exposure Through Output). An attacker can place a malicious .rtk/filters.toml file in a repository to apply regex‑based transformations such as strip_lines_matching to shell command output before it is displayed to the LLM, with no indication that the output has been modified. This silent tampering allows attackers to suppress or alter command output—including file contents, diffs, and security scan results—without detection, potentially hiding malicious code from AI‑assisted code review. The issue is resolved in RTK 0.32.0.

Affected Systems

The defect affects the rtk‑ai:rtk product, especially versions older than 0.32.0. Users of RTK running any previous release are impacted until they upgrade to the fixed version.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate to high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires placing a crafted .rtk/filters.toml in a working directory that RTK processes, which is typically a developer’s local repository. Based on the description, it is inferred that the attack vector is local, and because the tool applies the filter silently, the consequences include undetected tampering of data that feeds an LLM, leading to potential security reviews skipping malicious code.

Generated by OpenCVE AI on June 24, 2026 at 10:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade RTK to version 0.32.0 or later.
  • Remove or rename any .rtk/filters.toml in the repository to eliminate automated loading.
  • Audit local repositories for unexpected or malicious filter files and validate contents before trusting the output displayed to the LLM.

Generated by OpenCVE AI on June 24, 2026 at 10:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fvvm-949w-qj4w RTK improperly trusts project-local filter configuration, allowing silent tampering of command output shown to LLM
History

Tue, 23 Jun 2026 19:45:00 +0000

Type Values Removed Values Added
Description rtk filters and compresses command outputs before they reach your LLM context. Prior to 0.32.0, RTK (Rust Token Killer) improperly trusts project-local configuration files. RTK automatically loads .rtk/filters.toml from the working directory with highest priority and without user notification. An attacker can place a malicious filter file in a repository to apply regex-based modifications (e.g., strip_lines_matching) to shell command output before it is shown to the LLM, without any indication that the output has been modified. This allows attackers to selectively suppress or alter command output (including file contents, diffs, and security scan results) without detection, potentially concealing malicious code during AI-assisted development or review. This vulnerability is fixed in 0.32.0.
Title RTK improperly trusts project-local filter configuration, allowing silent tampering of command output shown to LLM
Weaknesses CWE-345
CWE-426
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-23T19:02:08.357Z

Reserved: 2026-05-13T08:19:32.602Z

Link: CVE-2026-45792

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T11:00:13Z

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity

  • CWE-426

    Untrusted Search Path