Medium, CVSS 6.9crates.ioPublished
RTK improperly trusts project-local filter configuration, allowing silent tampering of command output shown to LLM
CVE-2026-45792 · GHSA-fvvm-949w-qj4w
- Affected
- crates.io rtk < 0.32.0
- Fixed in
- 0.32.0· Vendor fix available
- Issue
- RTK (Rust Token Killer) improperly trusts project-local configuration files. In versions prior to 0.32.0, 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., striplinesmatching) 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. Patch Fixed in v0.32.0 (PRs #623, #625): - .rtk/filters.toml is now blocked by default when untrusted, with a visible warning: [rtk] WARNING: untrusted project filters — Filters NOT applied. Run rtk trust to review and enable. - SHA-256 hash verification: if the file changes after trust, filters are…
Recommended action: Upgrade to 0.32.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.