CVE-2026-72847 broot Terminal Escape Sequence Injection via Unsanitized File and Directory Names in the Tree View

Low 2.4 Published Updated

Attackers can inject terminal escape sequences via malicious filenames, potentially executing code or stealing data when victims browse directories.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-72847?

CVE-2026-72847 is a low-severity vulnerability in Canop broot, published on 20 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-150

Which versions are affected by CVE-2026-72847?

Linux distribution packages (1)
broot openSUSE:Leap 16.0All versions1.59.0-bp160.1.1

How do I fix CVE-2026-72847?

Apply the vendor's patch.

Is CVE-2026-72847 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-72847 exists.

Sources

Also known as DEBIAN-CVE-2026-72847, GHSA-8v8c-hvqj-mqw8, UBUNTU-CVE-2026-72847, openSUSE-SU-2026:21675-1.

Is CVE-2026-72847 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free