CVE-2024-32487: less - Command Injection
- Cve: CVE-2024-32487
- Name: less - Command Injection
- 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.
- Impact: Attackers can execute arbitrary OS commands, potentially leading to full system compromise.
- Remediation: Update to the latest version of less that addresses this issue or apply relevant patches.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker-controlled filenames and presence of LESSOPEN environment variable
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.6
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Epss score: 0.00633
- Epss percentile: 0.51281
- Assignee: [email protected]
- Published at: 2024-04-13T15:15:52Z
- Age in days: 954
- Modified at: 2026-06-17T07:29:43Z
- Patch available: yes
- References total: 6
- Products total: 5
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-32487
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-96 | Improper Neutralization of Directives in Statically Saved Code |
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Sources: nvd
| Product | Affected | Platform bound | Url |
|---|---|---|---|
| greenwoodsoftware:less | <= 653 | no | /v1/products/greenwoodsoftware/less |
| debian:debian_linux | = 10.0 | no | /v1/products/debian/debian_linux |
| netapp:solidfire | all versions | no | /v1/products/netapp/solidfire |
| netapp:bootstrap_os | all versions | yes | /v1/products/netapp/bootstrap_os |
| netapp:hci_storage_nodes | all versions | no | /v1/products/netapp/hci_storage_nodes |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| gwsw/less | commit, fix | yes | /v1/repositories/gwsw/less |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exposed hosts: 4706702
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports