CVE-2024-32487 — Static Code Injection in Less
Severity
8.6HIGHNVD
EPSS
0.3%
top 44.08%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedApr 13
Latest updateApr 29
Description
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HExploitability: 1.8 | Impact: 6.0
Affected Packages9 packages
Also affects: Debian Linux 10.0
Patches
🔴Vulnerability Details
2GHSA▶
GHSA-f53j-pgm5-c4r3: less through 653 allows OS command execution via a newline character in the name of a file, because quoting is mishandled in filename↗2024-04-13
OSV▶
CVE-2024-32487: less through 653 allows OS command execution via a newline character in the name of a file, because quoting is mishandled in filename↗2024-04-13
📋Vendor Advisories
4Microsoft▶
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 fil↗2024-04-09
Debian▶
CVE-2024-32487: less - less through 653 allows OS command execution via a newline character in the name...↗2024