CVE-2026-73480

gdu Terminal Injection via Unstripped Escape Sequences

Published Aug 13, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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. The EPSS score of 0.00119 (less than 1%) reflects a very low likelihood of exploitation, and the vulnerability is not listed in CISA KEV. The likely attack vector is local; an attacker who can place files or directories with 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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade gdu to the latest version that includes the escape‑sequence stripping fix (commit fe605ecd9ad0e0f1c7ba84131ddfa1c83c52406f).
  • If upgrade is not possible, use a wrapper script that sanitises file and directory names by stripping ANSI escape codes before passing them to gdu.
  • Restrict file system exposure by giving read‑only access to directories scanned by gdu to trusted users, preventing malicious names from being created by untrusted actors.

Generated by OpenCVE AI on August 15, 2026 at 02:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Dundee
Dundee gdu
Vendors & Products Dundee
Dundee gdu
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'}

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-838

    Inappropriate Encoding for Output Context

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 24, 2026, 2:19 PM
Reserved
Aug 12, 2026, 6:19 PM
Status
Deferred
Published
Aug 13, 2026, 9:18 PM
Modified
Sep 24, 2026, 8:06 PM
Severity
Moderate
Public date
Aug 13, 2026, 9:07 PM