App::Ack versions through 3.10.0 for Perl print unsanitised terminal escape sequences from filenames in several output modes
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-49147
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 06:48 UTC · Revision 1
Source evidence
App::Ack versions through 3.10.0 for Perl print unsanitised terminal escape sequences from filenames in several output modes
core-osv · Original sourcePublished 8 Jul 2026, 14:55 UTC
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.
osv:CVE-2026-49147
Complete source record
{
"id": "b2e889c6981a451b0f8217d63b33500cb86e5d8f22afba4c7c2e0914e3a4451e",
"url": "https://osv.dev/vulnerability/CVE-2026-49147",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "App::Ack versions through 3.10.0 for Perl print unsanitised terminal escape sequences from filenames in several output modes",
"summary": "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.",
"evidence": "osv:CVE-2026-49147",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-49147",
"aliases": [
"CVE-2026-49147"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/beyondgrep/ack3",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "e627c18e77d635b0dad69c77749e9296071b8389"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "3.10.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
}
],
"versions": [
"v3.10.0",
"v3.9.0",
"v3.8.2",
"v3.8.1",
"v3.8.0",
"v3.6.0",
"v3.5.0",
"v3.4.0",
"v3.1.3",
"v3.1.2",
"v3.1.1",
"v3.1.0",
"v3.0.3",
"v3.0.2",
"v3.0.1",
"v3.0.0",
"2.999_08",
"2.999_07",
"2.999_06",
"2.999_05",
"2.999_04",
"2.999_02",
"2.999_01",
"2.18r",
"2.18"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49147.json"
}
}
],
"modified": "2026-10-28T02:30:49.977900756Z",
"provider": "osv",
"references": [
"https://cpan.org/modules",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49147.json",
"https://metacpan.org/release/PETDANCE/ack-v3.10.0/source/Changes",
"https://nvd.nist.gov/vuln/detail/CVE-2026-49147",
"https://github.com/beyondgrep/ack3"
],
"provider_metadata": {
"cwe_ids": [
"CWE-150"
],
"cna_assigner": "CPANSec",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49147.json"
}
},
"related_cves": [
{
"value": "CVE-2026-49147",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518543,
"published_at": "2026-07-08T14:55:50.232+00:00"
}