Vulnerability · Published Jul 8, 2026 · Assigned by CPANSec
CVE-2026-49147App::Ack versions through 3.10.0 for Perl print unsanitised terminal escape sequences from filenames in several output modes
High 7.5
In plain English
A high-severity security flaw in App::Ack from PETDANCE. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | ack | 3.10.0-r0 | ALPINE-CVE-2026-49147 |
| Debian:12 | ack | no fix listed | DEBIAN-CVE-2026-49147 |
| Debian:13 | ack | no fix listed | DEBIAN-CVE-2026-49147 |
| Debian:14 | ack | no fix listed | DEBIAN-CVE-2026-49147 |
| Ubuntu:22.04:LTS | ack | no fix listed | UBUNTU-CVE-2026-49147 |
| Ubuntu:24.04:LTS | ack | no fix listed | UBUNTU-CVE-2026-49147 |
| Ubuntu:25.10 | ack | no fix listed | UBUNTU-CVE-2026-49147 |
| Ubuntu:26.04:LTS | ack | no fix listed | UBUNTU-CVE-2026-49147 |
| Ubuntu:26.10 | ack | no fix listed | UBUNTU-CVE-2026-49147 |
Affected products (as reported)
Weakness: CWE-150 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H