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.c. Exploitation typically requires use with attacker-controlled fi...
HighCVSS 8.6
EPSS 0.63%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
15 packages: 11 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| netapp bootstrap os | All versions | No fix listed | No fix yet |
| netapp hci storage nodes | All versions | No fix listed | No fix yet |
| netapp solidfire | All versions | No fix listed | No fix yet |
| debian/less(Debian 12) | < 590-2.1~deb12u2; = 590-2; = 590-2+hurd.1; = 590-2.1~deb12u1 | 590-2.1~deb12u2 | Fixed |
| debian/less(Debian 13) | < 590-2.1 | 590-2.1 | Fixed |
| debian/less(Debian 14) | < 590-2.1 | 590-2.1 | Fixed |
| greenwoodsoftware less | <= 653 | after 653 | Fixed |
| netapp less | <= 653 | after 653 | Fixed |
| ubuntu/less(Ubuntu 20.04) | < 551-1ubuntu0.3; = 487-0.1build1; = 551-1; = 551-1ubuntu0.1 +1 more | 551-1ubuntu0.3 | Fixed |
| ubuntu/less(Ubuntu 22.04) | < 590-1ubuntu0.22.04.3; = 551-2; = 551-2build1; = 590-1 +3 more | 590-1ubuntu0.22.04.3 | Fixed |
| ubuntu/less(Ubuntu 24.04) | < 590-2ubuntu2.1; = 590-2; = 590-2ubuntu1; = 590-2ubuntu2 | 590-2ubuntu2.1 | Fixed |
| ubuntu/less(Ubuntu Pro 14.04) | < 458-2ubuntu0.1~esm1; = 458-2 | 458-2ubuntu0.1~esm1 | Fixed |
| ubuntu/less(Ubuntu Pro 16.04) | < 481-2.1ubuntu0.2+esm2; = 458-3; = 458-3ubuntu1; = 481-2 +5 more | 481-2.1ubuntu0.2+esm2 | Fixed |
| ubuntu/less(Ubuntu Pro 18.04) | < 487-0.1ubuntu0.1~esm2; = 481-2.1ubuntu2; = 481-2.1ubuntu3; = 487-0.1 +1 more | 487-0.1ubuntu0.1~esm2 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/less(Debian:12) | < 590-2.1~deb12u2 | 590-2.1~deb12u2 |
| debian/less(Debian:12) | = 590-2 | No fix listed |
| debian/less(Debian:12) | = 590-2+hurd.1 | No fix listed |
| debian/less(Debian:12) | = 590-2.1~deb12u1 | No fix listed |
| debian/less(Debian:13) | < 590-2.1 | 590-2.1 |
| debian/less(Debian:14) | < 590-2.1 | 590-2.1 |
| ubuntu/less(Ubuntu:22.04) | < 590-1ubuntu0.22.04.3 | 590-1ubuntu0.22.04.3 |
| netapp less | <= 653 | No fix listed |
| ubuntu/less(Ubuntu:24.04) | < 590-2ubuntu2.1 | 590-2ubuntu2.1 |
| greenwoodsoftware less | <= 653 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| netapp bootstrap os | All versions | No fix listed |
| netapp hci storage nodes | All versions | No fix listed |
| netapp solidfire | All versions | No fix listed |
| ubuntu/less(Ubuntu:Pro:14.04) | < 458-2ubuntu0.1~esm1 | 458-2ubuntu0.1~esm1 |
| ubuntu/less(Ubuntu:Pro:14.04) | = 458-2 | No fix listed |
| ubuntu/less(Ubuntu:Pro:16.04) | < 481-2.1ubuntu0.2+esm2 | 481-2.1ubuntu0.2+esm2 |
| ubuntu/less(Ubuntu:Pro:16.04) | = 458-3 | No fix listed |
| ubuntu/less(Ubuntu:Pro:16.04) | = 458-3ubuntu1 | No fix listed |
| ubuntu/less(Ubuntu:Pro:16.04) | = 481-2 | No fix listed |
| ubuntu/less(Ubuntu:Pro:16.04) | = 481-2ubuntu1 | No fix listed |
| ubuntu/less(Ubuntu:Pro:16.04) | = 481-2.1 | No fix listed |
| ubuntu/less(Ubuntu:Pro:16.04) | = 481-2.1ubuntu0.1 | No fix listed |
| ubuntu/less(Ubuntu:Pro:16.04) | = 481-2.1ubuntu0.2 | No fix listed |
| ubuntu/less(Ubuntu:Pro:16.04) | = 481-2.1ubuntu0.2+esm1 | No fix listed |
Show 19 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/less(Ubuntu:Pro:18.04) | < 487-0.1ubuntu0.1~esm2 | 487-0.1ubuntu0.1~esm2 |
| ubuntu/less(Ubuntu:Pro:18.04) | = 481-2.1ubuntu2 | No fix listed |
| ubuntu/less(Ubuntu:Pro:18.04) | = 481-2.1ubuntu3 | No fix listed |
| ubuntu/less(Ubuntu:Pro:18.04) | = 487-0.1 | No fix listed |
| ubuntu/less(Ubuntu:Pro:18.04) | = 487-0.1ubuntu0.1~esm1 | No fix listed |
| ubuntu/less(Ubuntu:20.04) | < 551-1ubuntu0.3 | 551-1ubuntu0.3 |
| ubuntu/less(Ubuntu:20.04) | = 487-0.1build1 | No fix listed |
| ubuntu/less(Ubuntu:20.04) | = 551-1 | No fix listed |
| ubuntu/less(Ubuntu:20.04) | = 551-1ubuntu0.1 | No fix listed |
| ubuntu/less(Ubuntu:20.04) | = 551-1ubuntu0.2 | No fix listed |
| ubuntu/less(Ubuntu:22.04) | = 551-2 | No fix listed |
| ubuntu/less(Ubuntu:22.04) | = 551-2build1 | No fix listed |
| ubuntu/less(Ubuntu:22.04) | = 590-1 | No fix listed |
| ubuntu/less(Ubuntu:22.04) | = 590-1build1 | No fix listed |
| ubuntu/less(Ubuntu:22.04) | = 590-1ubuntu0.22.04.1 | No fix listed |
| ubuntu/less(Ubuntu:22.04) | = 590-1ubuntu0.22.04.2 | No fix listed |
| ubuntu/less(Ubuntu:24.04) | = 590-2 | No fix listed |
| ubuntu/less(Ubuntu:24.04) | = 590-2ubuntu1 | No fix listed |
| ubuntu/less(Ubuntu:24.04) | = 590-2ubuntu2 | No fix listed |
References
- Debian Security Tracker CVE-2024-32487 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6756-1 vendor-advisory
- www.cve.org issue-tracking
- www.openwall.com mailing-list patch
- www.openwall.com issue-tracking mailing-list
- github.com patch
- [oss-security] 20240415 Re: less(1) with LESSOPEN mishandles \n in paths mailing-list
- security.netapp.com vendor-advisory
- [debian-lts-announce] 20240527 [SECURITY] [DLA 3823-1] less security update mailing-list
- bugs.debian.org issue-tracking