{"id":"UBUNTU-CVE-2026-49147","details":"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.","modified":"2026-07-15T19:47:26.766419425Z","published":"2026-07-08T15:16:00Z","upstream":["CVE-2026-49147"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-49147"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-49147"},{"type":"REPORT","url":"https://lists.security.metacpan.org/cve-announce/msg/41643446/"}],"affected":[{"package":{"name":"ack","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ack?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.22-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ack","binary_version":"2.22-1"},{"binary_version":"2.22-1","binary_name":"ack-grep"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-49147.json"}},{"package":{"name":"ack","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ack?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.2-1","3.1.3-1","3.2.0-1","3.3.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ack","binary_version":"3.3.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-49147.json"}},{"package":{"name":"ack","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ack?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.0-1","3.5.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.5.0-1","binary_name":"ack"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-49147.json"}},{"package":{"name":"ack","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ack?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ack","binary_version":"3.7.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-49147.json"}},{"package":{"name":"ack","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ack?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.0-1","3.8.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ack","binary_version":"3.8.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-49147.json"}},{"package":{"name":"ack","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/ack?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.8.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.8.1-1","binary_name":"ack"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-49147.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}