Vulnerability · Published Apr 13, 2024 · Assigned by mitre
CVE-2024-32487
High 8.6
In plain English
A high-severity security flaw in the less package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | less | 530-3.el8_10 | ALSA-2024:4256 |
| AlmaLinux:9 | less | 590-4.el9_4 | ALSA-2024:3513 |
| Debian:12 | less | 590-2.1~deb12u2 | DEBIAN-CVE-2024-32487 |
| Debian:12 | less | 590-2.1~deb12u2 | DSA-5679-1 |
| Debian:13 | less | 590-2.1 | DEBIAN-CVE-2024-32487 |
| Debian:14 | less | 590-2.1 | DEBIAN-CVE-2024-32487 |
| Rocky Linux:8 | less | 0:530-3.el8_10 | RLSA-2024:4256 |
| Rocky Linux:9 | less | 0:590-4.el9_4 | RLSA-2024:3513 |
| Ubuntu:22.04:LTS | less | 590-1ubuntu0.22.04.3 | UBUNTU-CVE-2024-32487 |
| Ubuntu:22.04:LTS | less | 590-1ubuntu0.22.04.3 | USN-6756-1 |
| Ubuntu:24.04:LTS | less | 590-2ubuntu2.1 | USN-6756-1 |
| Ubuntu:24.04:LTS | less | 590-2ubuntu2.1 | UBUNTU-CVE-2024-32487 |
Affected products (as reported)
Weakness: CWE-96 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
References
- https://www.openwall.com/lists/oss-security/2024/04/13/2
- https://www.openwall.com/lists/oss-security/2024/04/12/5
- https://github.com/gwsw/less/commit/007521ac3c95bc76e3d59c6dbfe75d06c8075c33
- [oss-security] 20240415 Re: less(1) with LESSOPEN mishandles \n in paths mailing-list
- https://security.netapp.com/advisory/ntap-20240605-0009/
- [debian-lts-announce] 20240527 [SECURITY] [DLA 3823-1] less security update mailing-list