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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-07-08T14:55:50.232Z
- Modified: 2026-10-25T20:10:00.147Z
- Weaknesses: CWE-150
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- ack: up to 3.10.0

## References

- <https://metacpan.org/release/PETDANCE/ack-v3.10.0/source/Changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/07/08/9>

## Sources

- CVE List: [CVE-2026-49147](https://www.cve.org/CVERecord?id=CVE-2026-49147), CVE Terms of Use, modified 2026-07-08
- NVD: [CVE-2026-49147](https://nvd.nist.gov/vuln/detail/CVE-2026-49147), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-49147 · Whole record: https://cve.day/CVE-2026-49147.json · Rebuilt by cve.day 2026-11-25T22:59:27.381Z
