CVE-2026-45792: RTK Configuration Injection Allows Silent Output Suppression in LLM Workflows
RTK (Rust Token Killer), a tool that filters and compresses command outputs for large language models, contains a configuration trust vulnerability in versions before 0.32.0. An attacker who gains write access to a repository can place a malicious filter configuration file (.rtk/filters.toml) that automatically loads with highest priority, allowing them to silently modify or suppress command outputs—such as file contents, code diffs, or security scan results—before they reach an LLM. This could enable concealment of malicious code during AI-assisted code review or development workflows without the developer's knowledge.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- Weaknesses (CWE)
- CWE-345, CWE-426
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-23 / 2026-07-01
NVD description (verbatim)
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.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
RTK improperly implements implicit trust in project-local configuration files. The vulnerability stems from automatic loading of .rtk/filters.toml from the current working directory without explicit user notification or consent. The configuration format supports regex-based output transformations (such as strip_lines_matching) that can selectively remove, redact, or alter shell command output. Because RTK prioritizes local configuration highest, an attacker who commits a poisoned filters.toml to a shared repository will have their rules applied transparently to any developer who runs RTK in that directory. The absence of output modification indicators means developers cannot detect that information has been filtered, creating a silent information disclosure and integrity risk in the AI-assisted development pipeline. The fix in version 0.32.0 addresses the automatic trust model.
Business impact
This vulnerability threatens the integrity of code review and development workflows that rely on LLM assistance. If an attacker can inject a malicious filter configuration into a shared repository, they can hide suspicious code patterns, security vulnerabilities, or unauthorized changes from both human reviewers and AI tools. The risk is amplified in organizations using RTK to improve LLM context efficiency, where developers trust the output they see. Supply chain scenarios (e.g., open-source contributions, team repositories) present the highest exposure. The attack leaves minimal forensic evidence since output suppression happens transparently.
Affected systems
RTK versions prior to 0.32.0 are affected. The vulnerability requires local code repository write access and user interaction (execution of RTK commands in a compromised working directory). Systems where developers run RTK on untrusted or community-contributed code, or where repository access controls are not strictly enforced, face the greatest risk. Organizations using RTK in continuous integration pipelines are potentially affected if those pipelines process repositories not fully controlled by the organization.
Exploitability
Exploitation requires two preconditions: (1) write access to the target repository to place a malicious .rtk/filters.toml file, and (2) the target user must execute RTK commands in that directory. The CVSS vector (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N) reflects local attack surface, low complexity once access is gained, and user interaction (running RTK). This is not a remote code execution vulnerability. The attack is most practical in open-source or internal-project contexts where contributors routinely clone and develop on shared code. No known public exploit exists at this time, and the vulnerability is not listed on the KEV catalog.
Remediation
Upgrade RTK to version 0.32.0 or later. Organizations should audit existing .rtk/filters.toml files in repositories for unauthorized or suspicious filter rules. Consider implementing repository branch protection policies and code review requirements for configuration files. For teams using RTK in shared development environments, establish guidelines that limit local filter configurations or disable implicit loading of project-local config files if the tool provides such an option.
Patch guidance
Apply the upgrade to RTK 0.32.0 as soon as feasible. The fix changes how RTK handles project-local configuration trust; verify the release notes and vendor documentation to confirm the new behavior meets your workflow requirements. No breaking changes to filter syntax are noted, so upgrades should be straightforward. Test the upgrade in a non-production environment first to confirm that legitimate filter configurations continue to work as expected.
Detection guidance
Review .rtk/filters.toml files in repositories for unexpected or suspicious regex patterns, particularly those using strip_lines_matching or similar redaction rules. Audit RTK command execution logs (if available) to identify which configurations were applied. Monitor for discrepancies between raw command output and output visible to developers (though this is difficult since the tool intentionally suppresses visibility). Implement file integrity monitoring on configuration files in sensitive repositories. In CI/CD contexts, log the contents of RTK configuration files used during pipeline execution.
Why prioritize this
This vulnerability merits prompt but not emergency remediation. The CVSS score of 5.5 (MEDIUM) reflects the integrity risk and local-attack-surface constraint. The absence of KEV listing indicates it has not been actively exploited in the wild at scale. However, the attack is subtle and could go undetected in code review workflows, making it strategically valuable to an attacker. Teams that rely on RTK for LLM context efficiency, especially those accepting external contributions, should prioritize upgrade within 30–60 days. The fix is low-risk and should be applied before engaging with untrusted repositories.
Risk score, explained
The CVSS:3.1 score of 5.5 (MEDIUM) is driven by high integrity impact (I:H)—output can be silently altered—against low attack surface (AV:L/PR:N/UI:R). The vulnerability does not affect confidentiality or system availability. Scope is unchanged (S:U), meaning the impact is limited to RTK users, not the broader system. The medium score appropriately reflects a real but context-dependent risk: significant for organizations that rely on RTK and accept untrusted code, lower for isolated or fully-controlled development environments.
Frequently asked questions
Can an attacker execute arbitrary code via this vulnerability?
No. This vulnerability allows silent modification or suppression of command output via regex filtering, not code execution. The attacker must already have write access to the repository to place the malicious configuration file. Code execution is a separate risk governed by other controls (e.g., code review, CI/CD sandboxing).
What if we use RTK only on code we fully control?
Your risk is lower but not zero. If any team member's environment is compromised, or if a repository is briefly made public or shared, a malicious .rtk/filters.toml could be injected. We recommend upgrading as a hygiene measure and implementing configuration file review policies regardless.
Does RTK 0.32.0 prevent all configuration-based attacks?
Version 0.32.0 fixes the automatic implicit trust of project-local configuration. Review the vendor's documentation to confirm how the new version handles configuration loading and whether any explicit opt-in or notification is now required. This change is expected to eliminate the silent-suppression risk.
How do we know if a repository was compromised using this vulnerability?
Detection after-the-fact is difficult because the filter suppresses output that would normally alert you. Best practices: (1) audit existing .rtk/filters.toml files for unexpected rules, (2) review git history of configuration files, (3) compare raw tool output with what was shown to developers, and (4) upgrade to 0.32.0 to prevent future exploitation.
This analysis is provided for informational purposes and reflects the facts and vendor advisory available as of the publication date. Security professionals should independently verify patch availability, verify compatibility with their environment, and conduct testing before deployment. CVSS scores and severity ratings are industry-standard assessments but should be contextualized to your organizational risk profile. This vulnerability does not include publicly disclosed exploit code or proof-of-concept. For the most current advisory and patch status, consult the official RTK project repository and security documentation. Source: NVD (public-domain), retrieved 2026-07-29. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-46538MEDIUMMicrosoft UFO Cross-Device Task Result Injection (CVSS 5.9)
- CVE-2026-46539MEDIUMNimiq BlockInclusionProof Logic Flaw Enables Forged Block Headers
- CVE-2026-47155MEDIUMvLLM Revision Pinning Supply-Chain Integrity Bypass (CVSS 6.5)
- CVE-2026-47696MEDIUMWWBN AVideo AuthorizeNet Payment Bypass—Wallet Fraud Vulnerability
- CVE-2026-48096MEDIUMOpenFGA Cache Collision Vulnerability: Impact, Patching & Detection
- CVE-2026-48783MEDIUMPostiz Unauthenticated Token Validation Flaw in /public/modify-subscription
- CVE-2026-53862MEDIUMOpenClaw Bootstrap Token Replay Vulnerability – Scope Escalation Risk
- CVE-2026-53899MEDIUMFirefox iOS Cookie Theft Vulnerability: Fix & Detection