CVE Catalog

CVE-2024-32487

HighCVSS 8.6
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.63%

52th percentile - higher than 52% of all known CVEs

Summary

less through 653 allows OS command execution via a newline character in the name of a file, because quoting is mishandled in filename.c. Exploitation typically requires use with attacker-controlled file names, such as files extracted from an untrusted archive, and also requires the LESSOPEN environment variable, which is set by default in many common cases.

Risk Assessment

An attacker could execute arbitrary commands in the context of the user running less, potentially leading to system compromise or data theft. The risk is especially high in environments where users view files from untrusted sources.

Recommendation

Update less to a version newer than 653 or disable the LESSOPEN environment variable if not required. Avoid opening files from untrusted archives with less.

Other vulnerabilities in less

Original NVD description (English source)

less through 653 allows OS command execution via a newline character in the name of a file, because quoting is mishandled in filename.c. Exploitation typically requires use with attacker-controlled file names, such as the files extracted from an untrusted archive. Exploitation also requires the LESSOPEN environment variable, but this is set by default in many common cases.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS