CVE-2026-72847broot Terminal Escape Sequence Injection via Unsanitized File and Directory Names in the…
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | rust-broot | Fix pending | UBUNTU-CVE-2026-72847 | |
| Ubuntu 26.04 | rust-broot | Under investigation | UBUNTU-CVE-2026-72847 | |
| Debian 14 | rust-broot | Fixed | 1.60.2+ds-1 | DEBIAN-CVE-2026-72847 |
| Debian 13 | rust-broot | Fix pending | DEBIAN-CVE-2026-72847 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Canop broot: affected: up to 1.58.0
Vendor advisories:
- https://github.com/Canop/broot/commit/4ba40f7d47af78457c7656f15eba71d63d97fce5 (patch)
- https://github.com/Canop/broot/commit/0717a94b3c0efa19c7bbcfe0fb49a2374752a168 (patch)
References
- https://github.com/Canop/broot/issues/1188
- https://github.com/Canop/broot/commit/4ba40f7d47af78457c7656f15eba71d63d97fce5
- https://github.com/Canop/broot/commit/0717a94b3c0efa19c7bbcfe0fb49a2374752a168
- https://github.com/Canop/broot/blob/v1.58.0/src/tree/tree_line.rs
- https://github.com/Canop/broot/blob/v1.58.0/src/tree_build/builder.rs
- https://github.com/Canop/broot
- https://www.vulncheck.com/advisories/broot-terminal-escape-sequence-injection-via-unsanitized-file-and-directory-names-in-the-tree-view
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.