CVE-2026-45792: Rtk RTK Improperly Trusts Project-local Filter Vulnerability
MODERATECVE-2026-45792 is a MODERATE (CVSS 5.5) rtk improperly trusts project-local filter vulnerability (CWE-426: Untrusted Search Path) affecting Rtk libraries in the crates.io ecosystem. The issue involves rtk improperly trusts project-local filter configuration, allowing silent tampering of command output shown to llm. Remediation is available by upgrading affected packages to version 0.32.0.
CVE-2026-45792 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N).
How to Fix CVE-2026-45792
To remediate this vulnerability, upgrade all affected Rtk dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade rtk to 0.32.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rtk
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-45792, inspect your project dependencies for Rtk:
inspect dependencies for rtk
Analyze the terminal output to locate any version of Rtk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.32.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-426: Untrusted Search Path, where the product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control. In Rtk, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-45792 Affected Rtk Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rtk
|
crates.io |
< 0.32.0
|
0.32.0
|
References
Frequently Asked Questions
What is CVE-2026-45792?
Which Rtk versions are affected?
What version fixes CVE-2026-45792?
Is rtk affected?
What is the CVSS score of CVE-2026-45792?
What CWE is associated with CVE-2026-45792?
How can I check crates.io dependencies for CVE-2026-45792?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fvvm-949w-qj4w",
"modified" : "2026-07-20T21:12:26Z",
"published" : "2026-05-20T15:30:04Z",
"aliases" : [ "CVE-2026-45792" ],
"summary" : "RTK improperly trusts project-local filter configuration, allowing silent tampering of command output shown to LLM",
"details" : "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.\n\nThis 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.\n\n### Patch\n\nFixed in v0.32.0 (PRs #623, #625):\n\n- `.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.`\n- SHA-256 hash verification: if the file changes after trust, filters are blocked again until re-reviewed.\n- New `rtk trust` / `rtk untrust` commands for explicit user consent.\n- Trust store implemented in `src/trust.rs`; trust gate added in `src/toml_filter.rs`.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "rtk"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.32.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rtk-ai/rtk/security/advisories/GHSA-fvvm-949w-qj4w"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45792"
}, {
"type" : "WEB",
"url" : "https://github.com/rtk-ai/rtk/pull/623"
}, {
"type" : "WEB",
"url" : "https://github.com/rtk-ai/rtk/pull/625"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rtk-ai/rtk"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-345", "CWE-426" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-20T15:30:04Z",
"nvd_published_at" : "2026-06-23T20:16:47Z"
}
}