CVE-2026-72847
broot Terminal Escape Sequence Injection via Unsanitized File and Directory Names in the Tree View
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.
INFO
Published Date :
Aug. 20, 2026, 6:16 p.m.
Last Modified :
Oct. 18, 2026, 8:10 p.m.
Remotely Exploit :
No
Source :
[email protected]
Affected Products
The following products are affected by CVE-2026-72847
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | 83251b91-4cc7-4094-a5c7-464a1b83ea10 | ||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | MITRE-CVE | ||||
| CVSS 4.0 | LOW | 83251b91-4cc7-4094-a5c7-464a1b83ea10 | ||||
| CVSS 4.0 | LOW | [email protected] |
Solution
- Implement control character filtering for file names.
- Strip or escape unsafe characters before rendering.
- Update broot to the latest version.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-72847.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-72847 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-72847
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-72847 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-72847 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 18, 2026
Action Type Old Value New Value Added Translation Title: broot de Canop, Description: broot renderiza cada nombre de archivo y directorio en su vista de árbol interactiva exactamente como se lee del sistema de archivos. Los nombres se convierten con una llamada simple a to_string_lossy() en src/tree_build/builder.rs y en TreeLine::unprune en src/tree/tree_line.rs, y no existe ningún filtrado de caracteres de control en ninguna parte del código, a pesar de que el comentario de la documentación en el campo de nombre de TreeLine indica que algunos caracteres pueden haber sido eliminados. Cualquier usuario local que pueda crear un archivo puede, por lo tanto, colocar una secuencia de escape en su nombre y hacer que se escriba sin modificar en la terminal de cualquiera que explore ese directorio, entre los propios códigos de estilo de broot. Una prueba de concepto reportada utilizó una secuencia de escritura de portapapeles OSC 52 y capturó los bytes sin procesar que broot escribió en su pty, confirmando que la secuencia llega a la terminal sin eliminar. Lo que una secuencia OSC o CSI inyectada puede hacer entonces depende del emulador de terminal en uso. Explorar un directorio es la función principal de broot y no conlleva la expectativa de que el contenido sea de confianza. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 21, 2026
Action Type Old Value New Value Added Reference https://github.com/Canop/broot/issues/1188 Added SSVC {'id': 'CVE-2026-72847', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-21T16:22:34.537761Z'} -
New CVE Received by [email protected]
Aug. 20, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://github.com/Canop/broot', 'vendor': 'Canop', 'product': 'broot', 'versions': [{'status': 'affected', 'version': '0', 'versionType': 'semver', 'lessThanOrEqual': '1.58.0'}], 'packageURL': 'pkg:cargo/broot', 'defaultStatus': 'unaffected'}] Added 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. Added CVSS V4.0 AV:L/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CVSS V3.1 AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Added CWE CWE-150 Added Reference https://github.com/Canop/broot Added Reference https://github.com/Canop/broot/blob/v1.58.0/src/tree/tree_line.rs Added Reference https://github.com/Canop/broot/blob/v1.58.0/src/tree_build/builder.rs Added Reference https://github.com/Canop/broot/commit/0717a94b3c0efa19c7bbcfe0fb49a2374752a168 Added Reference https://github.com/Canop/broot/commit/4ba40f7d47af78457c7656f15eba71d63d97fce5 Added Reference https://github.com/Canop/broot/issues/1188 Added Reference https://www.vulncheck.com/advisories/broot-terminal-escape-sequence-injection-via-unsanitized-file-and-directory-names-in-the-tree-view