RUSTSEC-2026-0430: Path traversal in `rio-vt` Kitty graphics protocol handler allows out-of-bounds file delete (and read)
Published 2026-11-01 · Updated 2026-11-02
Summary
A path traversal vulnerability in the Kitty graphics protocol handler of `rio-vt` allows attackers to delete and read arbitrary files via crafted escape sequences. Terminal emulators and applications built on `rio-vt` versions prior to 0.5.29 should upgrade immediately.
Who is affected
Any terminal emulator or application using `rio-vt` versions before 0.5.29 that processes untrusted output (such as SSH sessions, cat'd files, or CI logs) is affected. The vulnerability requires the attacker to control terminal output that includes a malicious Kitty graphics protocol escape sequence with a crafted file path containing the substring 'tty-graphics-protocol' and directory traversal sequences. When the temp-file transmission medium is used, the application will read and delete the targeted file outside the intended temporary directory. The fix also hardened path checks for the file transmission medium.
Exploitability
The CVSS vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N indicates local attack vector, high attack complexity, no privileges required, user interaction required, and high integrity impact with no confidentiality or availability impact. EPSS score is not yet available, and the vulnerability is not listed in CISA Known Exploited Vulnerabilities, so active exploitation is not documented.
Remediation
- Upgrade `rio-vt` to version 0.5.29 or later via Cargo.toml dependency update.
- Rebuild and redeploy any terminal emulator or application that depends on `rio-vt` to incorporate the fix.
How to check your project
- Check Cargo.lock or Cargo.toml for `rio-vt` version; versions prior to 0.5.29 are vulnerable.
- Run `cargo tree -p rio-vt` in the project to identify the resolved version.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | rio-vt |
>= 0.0.0-0, < 0.5.29 | 0.5.29 | cargo update -p rio-vt --precise 0.5.29 |
CVSS 3.1 vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
| Attack vector | Local |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | High |
| Availability | None |
FAQ
Which versions of `rio-vt` are affected?
All versions from 0.0.0-0 up to but not including 0.5.29 are affected. The vulnerability was fixed in version 0.5.29.
Does this vulnerability affect the direct file transmission medium as well?
The described flaw specifically affects the temp-file transmission medium. However, the fix in version 0.5.29 also hardened path checks for the file medium to run on the file actually opened.
Is there a workaround without upgrading?
No workaround is documented in the vulnerability record. The only remediation is upgrading to `rio-vt` 0.5.29 or later.
Original advisory description
References
- PACKAGE https://crates.io/crates/rio-vt
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0430.html
- ADVISORY https://github.com/raphamorim/rio/security/advisories/GHSA-m926-9wrf-jr8w
- WEB https://github.com/raphamorim/rio/pull/1998
Source records: RUSTSEC-2026-0430 (OSV.dev).