Skip to main content
EPSS 0.1%top 97%

CVE-2026-72847: Improper Neutralization of Escape, Meta, or Control Sequences in Canop broot

0
Low
VulnerabilityCVE-2026-72847cvecve-2026-72847
Published: 08/20/2026 (08/20/2026, 17:19:34 UTC)
Source: CVE Database V5
Vendor/Project: Canop
Product: broot

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.

CVSS v4.0

Score 2.4low

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
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

Affected software

Canop

broot

Affected versions
>=0 <=1.58.0
GitHub Actionsmore threats →cve
broot
pkg:github/broot
Affected versions
>=0 <=1.58.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/25/2026, 02:39:35 UTC

Technical Analysis

The vulnerability arises because broot renders file and directory names exactly as read from the filesystem using to_string_lossy() without filtering control characters or escape sequences. This allows injection of terminal escape sequences such as OSC 52 clipboard-write sequences into the terminal output when browsing directories. The injected sequences are not stripped and reach the terminal unmodified, potentially allowing unintended terminal behavior depending on the terminal emulator. The vulnerability affects broot versions >=0 and <=1.58.0.

Potential Impact

A local user able to create files can embed escape sequences in file or directory names that are rendered unfiltered in the terminal of users browsing those directories. This can lead to unexpected terminal behavior or potential information leakage depending on the terminal emulator's interpretation of the escape sequences. The CVSS score is low (2.4), indicating limited impact and exploitability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should be cautious when browsing directories containing files created by untrusted local users. No official fix or workaround is currently documented.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-08-10T15:14:51.468Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a873babacd9273b49eebb06

Added to database: 08/20/2026, 17:38:51 UTC

Last enriched: 09/25/2026, 02:39:35 UTC

Last updated: 10/05/2026, 06:48:18 UTC

Views: 85

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses