CVE-2026-72847
published low CVSS 4.0 · 2.4broot Terminal Escape Sequence Injection via Unsanitized File and Directory Names in the Tree View
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Canop | — | broot0 through 1.58.0 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| SUSE / openSUSE | openSUSE-Leap-16.0 | brootaarch64 | Advisory build | 1.59.0-bp160.1.1 | OPENSUSE-SU-2026:21675-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | brootppc64le | Advisory build | 1.59.0-bp160.1.1 | OPENSUSE-SU-2026:21675-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | broots390x | Advisory build | 1.59.0-bp160.1.1 | OPENSUSE-SU-2026:21675-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | brootx86_64 | Advisory build | 1.59.0-bp160.1.1 | OPENSUSE-SU-2026:21675-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.4 / 10
- Severity
- low
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.6 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Canop | broot | 0 through 1.58.0 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
References
7- https://github.com/Canop/broot
- Unsanitized name handling in TreeLine at v1.58.0 https://github.com/Canop/broot/blob/v1.58.0/src/tree/tree_line.rs
- Unsanitized name construction in the tree builder at v1.58.0 https://github.com/Canop/broot/blob/v1.58.0/src/tree_build/builder.rs
- improve esc stripping, apply it to link targets too https://github.com/Canop/broot/commit/0717a94b3c0efa19c7bbcfe0fb49a2374752a168
- Strip terminal escape sequences from displayed file/directory names (#1189) https://github.com/Canop/broot/commit/4ba40f7d47af78457c7656f15eba71d63d97fce5
- GitHub Issue #1188 https://github.com/Canop/broot/issues/1188
- VulnCheck Advisory: broot Terminal Escape Sequence Injection via Unsanitized File and Directory Names in the Tree View https://www.vulncheck.com/advisories/broot-terminal-escape-sequence-injection-via-unsanitized-file-and-directory-names-in-the-tree-view
Provider assertions
2VulnCheck · cna
broot Terminal Escape Sequence Injection via Unsanitized File and Directory Names in the Tree View
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 177095f97f55d3c16c98ef99160dd22d45c05ada140d14f538998086108f03ff
- Ingested
- 30 Sep 2026, 15:32:47 UTC
- Source record
- Official CVE record