Description
gdu fails to strip terminal escape sequences from directory and file names when printing paths after TUI exit. Attackers can craft malicious directory or file names containing escape sequences that are interpreted by the terminal, enabling title spoofing, clipboard manipulation, or other terminal-dependent effects.
Published: 2026-08-13
Score: 4.8 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The gdu program fails to strip terminal escape sequences from directory and file names when it prints them after exiting the TUI. An attacker can create or place maliciously crafted names containing ANSI escape codes in directories or files. When gdu displays those names, the terminal interprets the escape codes, allowing title spoofing, clipboard manipulation, or other terminal-dependent effects. The vulnerability does not provide direct code execution but can mislead users or alter terminal behavior during a session.

Affected Systems

The vulnerability affects the gdu utility developed by Dundee. No version information is listed, so all current releases prior to the recent fix are considered vulnerable. Users running any gdu installation that has not applied the upstream patch or upgrade are impacted.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate risk. EPSS information is not available, and the vulnerability is not listed in CISA KEV. The likely attack vector is local; an attacker who can place files or directories with the crafted names on a disk that the user scans with gdu can trigger the terminal effect when the paths are displayed. The vulnerability exploits normal gdu display logic without special privileges, making it relatively easy to abuse in a trusted user context.

Generated by OpenCVE AI on August 13, 2026 at 22:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a gdu release that includes the patch for stripping terminal escape sequences (see the referenced commit);
  • If an immediate upgrade is not possible, verify that the directory and file names do not contain ANSI escape codes before running gdu, or replace suspicious names;
  • As a temporary workaround, run gdu in an environment that does not interpret escape codes, such as redirecting output to a file or using a terminal emulator that ignores CSI sequences.

Generated by OpenCVE AI on August 13, 2026 at 22:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Description gdu fails to strip terminal escape sequences from directory and file names when printing paths after TUI exit. Attackers can craft malicious directory or file names containing escape sequences that are interpreted by the terminal, enabling title spoofing, clipboard manipulation, or other terminal-dependent effects.
Title gdu Terminal Injection via Unstripped Escape Sequences
Weaknesses CWE-116
References
Metrics cvssV3_1

{'score': 5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-13T21:07:18.686Z

Reserved: 2026-08-12T18:19:17.024Z

Link: CVE-2026-73480

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-13T21:18:32.187

Modified: 2026-08-13T21:18:32.187

Link: CVE-2026-73480

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T22:45:03Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output