Skip to content
Heist/ feed
Back to feed
Medium

rust-broot — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-72847

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.

Products
rust-broot
Affected versions
1.47.0-2, 1.51.0-1, 1.52.0-1, 1.53.0-1, 1.53.0-2, 1.54.0-1, 1.54.0-2, 1.54.0-3, 1.54.0-4, 1.55.0-1, 1.57.0+dfsg-3, 1.57.0+ds-2
Fixed versions
Not specified
CVEs
CVE-2026-72847
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:52 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-72847

core-osv · Original source

Published 20 Aug 2026, 18:16 UTC

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.

osv:UBUNTU-CVE-2026-72847

rust-broot

Fixed versions: Not specified

rust-broot

Fixed versions: Not specified

Complete source record
{
  "id": "cb0eadbf3e92451b2c7eff7bb281c303e8fd7bff8e436ceb5ce695c028c12720",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-72847",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-72847",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-72847",
    "products": [
      {
        "name": {
          "value": "rust-broot",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.55.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.57.0+dfsg-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.57.0+ds-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-broot",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.47.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.51.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.52.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.53.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.53.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.54.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.54.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.54.0-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.54.0-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.55.0-1",
            "evidence": "/affected/1/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-72847",
      "aliases": [
        "UBUNTU-CVE-2026-72847"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
        },
        {
          "type": "CVSS_V4",
          "score": "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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-broot",
            "purl": "pkg:deb/ubuntu/rust-broot?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.55.0-1",
            "1.57.0+dfsg-3",
            "1.57.0+ds-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-72847.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "broot",
                "binary_version": "1.57.0+ds-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-broot",
            "purl": "pkg:deb/ubuntu/rust-broot?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.47.0-2",
            "1.51.0-1",
            "1.52.0-1",
            "1.53.0-1",
            "1.53.0-2",
            "1.54.0-1",
            "1.54.0-2",
            "1.54.0-3",
            "1.54.0-4",
            "1.55.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-72847.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "broot",
                "binary_version": "1.55.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:35.827011267Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-72847"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-72847",
        "https://www.cve.org/CVERecord?id=CVE-2026-72847",
        "https://github.com/Canop/broot/issues/1188"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-72847",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359688,
  "published_at": "2026-08-20T18:16:00+00:00"
}