CVE-2026-72847 broot Terminal Escape Sequence Injection via Unsanitized File and Directory Names in the Tree View
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
broot renders each file and directory name in its interactive tree view exactly as read from the filesystem. Names are converted with a plain to_string_lossy() call in src/tree_build/builder.rs and in TreeLine::unprune in src/tree/tree_line.rs, and no control-character filtering exists anywhere in the code, even though the doc comment on the TreeLine name field states that some characters may have been stripped. Any local user who can create a file can therefore place an escape sequence in its name and have it written unmodified to the terminal of anyone who browses that directory, between broot's own styling codes. A reported proof of concept used an OSC 52 clipboard-write sequence and captured the raw bytes broot wrote to its pty, confirming the sequence reaches the terminal unstripped. What an injected OSC or CSI sequence can then do depends on the terminal emulator in use. Browsing a directory is broot's primary function and carries no expectation that the content is trusted.
Upgrade path
5 packages: 2 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/rust-broot(Debian 13) | = 1.46.3-2; = 1.47.0-1; = 1.47.0-2; = 1.47.0-3 +26 more | No fix listed | No fix yet |
| ubuntu/rust-broot(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-broot(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| crates.io broot | <= 1.58.0 | after 1.58.0 | Fixed |
| debian/rust-broot(Debian 14) | < 1.60.2+ds-1; = 1.46.3-2; = 1.47.0-1; = 1.47.0-2 +24 more | 1.60.2+ds-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io broot | <= 1.58.0 | No fix listed |
| ubuntu/rust-broot(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rust-broot(Ubuntu:26.10) | All versions | No fix listed |
| debian/rust-broot(Debian:13) | All versions | No fix listed |
| debian/rust-broot(Debian:13) | = 1.46.3-2 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.47.0-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.47.0-2 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.47.0-3 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.48.0-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.49.1-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.49.1-2 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.50.0-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.51.0-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.51.0-2 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.52.0-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.53.0-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.53.0-2 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.54.0-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.54.0-2 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.54.0-3 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.54.0-4 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.55.0-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.56.2+dfsg-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.56.2+dfsg-2 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.56.4+dfsg-1 | No fix listed |
Show 36 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/rust-broot(Debian:13) | = 1.57.0+dfsg-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.57.0+dfsg-2 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.57.0+dfsg-3 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.57.0+ds-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.57.0+ds-2 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.57.0+ds-3 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.60.2+ds-1 | No fix listed |
| debian/rust-broot(Debian:13) | = 1.60.2+ds-2 | No fix listed |
| debian/rust-broot(Debian:14) | < 1.60.2+ds-1 | 1.60.2+ds-1 |
| debian/rust-broot(Debian:14) | = 1.46.3-2 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.47.0-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.47.0-2 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.47.0-3 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.48.0-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.49.1-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.49.1-2 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.50.0-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.51.0-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.51.0-2 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.52.0-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.53.0-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.53.0-2 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.54.0-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.54.0-2 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.54.0-3 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.54.0-4 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.55.0-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.56.2+dfsg-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.56.2+dfsg-2 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.56.4+dfsg-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.57.0+dfsg-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.57.0+dfsg-2 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.57.0+dfsg-3 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.57.0+ds-1 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.57.0+ds-2 | No fix listed |
| debian/rust-broot(Debian:14) | = 1.57.0+ds-3 | No fix listed |
References
- GitHub Issue #1188 exploit issue-tracking
- Strip terminal escape sequences from displayed file/directory names (#1189) patch
- improve esc stripping, apply it to link targets too patch
- Unsanitized name handling in TreeLine at v1.58.0 technical-description
- Unsanitized name construction in the tree builder at v1.58.0 technical-description
- github.com product
- VulnCheck Advisory: broot Terminal Escape Sequence Injection via Unsanitized File and Directory Names in the Tree View third-party-advisory
- Debian Security Tracker CVE-2026-72847 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-63488 third-party-advisory