Skip to content

CVE-2026-49147 App::Ack versions through 3.10.0 for Perl print unsanitised terminal escape sequences from filenames in several output modes

HighCVSS 7.5 EPSS 0.49%
Published
Updated
Exploit status
No public exploit known

Description

App::Ack versions through 3.10.0 for Perl print unsanitised terminal escape sequences from filenames in several output modes.

When ack prints a filename whose basename contains terminal control bytes such as ANSI escape sequences, those bytes reach the terminal unchanged. Version 3.10.0 added a _safe_filename helper that sanitises the filenames printed by -f, -g, the colored match heading, and per-match lines, but the --show-types, -l/-L, and -c paths still emit the raw filename.

A file whose name embeds cursor-movement or color escapes can overwrite or recolor earlier terminal output, or be passed unchanged to a downstream consumer.

Affected products

ProductAffected versionsFixed in
PETDANCE App::Ack <= 3.10.0 No fix listed
debian/ack(Debian:12) All versions No fix listed
debian/ack(Debian:12) = 3.10.0-1 No fix listed
debian/ack(Debian:12) = 3.6.0-1 No fix listed
debian/ack(Debian:12) = 3.7.0-1 No fix listed
debian/ack(Debian:12) = 3.8.1-1 No fix listed
debian/ack(Debian:13) All versions No fix listed
debian/ack(Debian:13) = 3.10.0-1 No fix listed
debian/ack(Debian:13) = 3.8.1-1 No fix listed
debian/ack(Debian:14) < 3.10.0-1 3.10.0-1
debian/ack(Debian:14) = 3.8.1-1 No fix listed
ubuntu/ack(Ubuntu:22.04) All versions No fix listed
alpine/ack(Alpine:v3.24) < 3.10.0-r0 3.10.0-r0
ubuntu/ack(Ubuntu:24.04) All versions No fix listed
ubuntu/ack(Ubuntu:26.04) All versions No fix listed
ubuntu/ack(Ubuntu:26.10) All versions No fix listed

References