App::Ack versions through 3.10.0 for Perl print unsanitised terminal escape sequences from filenames in several output modes
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| PETDANCE | App::Ack | unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Petdance | App::ack |
|
Vendor Solution
Upgrade to a future ack release.
Vendor Workaround
Pipe ack output through a filter that strips terminal control characters when running ack over untrusted filenames.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.488% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Petdance
Petdance app::ack |
|
| Vendors & Products |
Petdance
Petdance app::ack |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | App::Ack versions through 3.10.0 for Perl print unsanitised terminal escape sequences from filenames in several output modes | |
| Weaknesses | CWE-150 | |
| References |
|