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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| dundee | gdu | < fe605ec | fe605ec |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | gdu | No fix yet | — |
| Debian 13 | gdu | No fix yet | — |
| Debian 12 | gdu | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | gdu | No fix yet | — |
| Ubuntu 26.04 LTS | gdu | No fix yet | — |
| Ubuntu 24.04 LTS | gdu | No fix yet | — |
| Ubuntu 22.04 LTS | gdu | No fix yet | — |
References
- GitHub Issue #615 issue-tracking
- Product Repository product
- https://www.vulncheck.com/advisories/gdu-terminal-injection-via-unstripped-escape-sequences third-party-advisory
- Patch Commit patch