OSV 1.4.0 · github-reviewed · 修改于 2026-07-21 05:12
发布时间
2026-05-20 23:30
GitHub 审查时间
2026-05-20 23:30
NVD 发布时间
2026-06-24 04:16
源文件
advisories/github-reviewed/2026/05/GHSA-fvvm-949w-qj4w/GHSA-fvvm-949w-qj4w.json
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., 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.
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.rtk trust / rtk untrust commands for explicit user consent.src/trust.rs; trust gate added in src/toml_filter.rs.