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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.5%top 57.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.24ack3.10.0-r0ALPINE-CVE-2026-49147
Debian:12ackno fix listedDEBIAN-CVE-2026-49147
Debian:13ackno fix listedDEBIAN-CVE-2026-49147
Debian:14ackno fix listedDEBIAN-CVE-2026-49147
Ubuntu:22.04:LTSackno fix listedUBUNTU-CVE-2026-49147
Ubuntu:24.04:LTSackno fix listedUBUNTU-CVE-2026-49147
Ubuntu:25.10ackno fix listedUBUNTU-CVE-2026-49147
Ubuntu:26.04:LTSackno fix listedUBUNTU-CVE-2026-49147
Ubuntu:26.10ackno fix listedUBUNTU-CVE-2026-49147

Affected products (as reported)

VendorProductVersions
PETDANCE App::Ack 0 – through 3.10.0

Weakness: CWE-150 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References