SecurityContext

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

IdName
CWE-96Improper Neutralization of Directives in Statically Saved Code

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/gwsw/less/commit/007521ac3c95bc76e3d59c6dbfe75d06c8075c33Patch
https://www.openwall.com/lists/oss-security/2024/04/13/2Mailing List, Patch
https://security.netapp.com/advisory/ntap-20240605-0009/Vendor Advisory
http://www.openwall.com/lists/oss-security/2024/04/15/1Mailing List
https://lists.debian.org/debian-lts-announce/2024/05/msg00018.htmlMailing List
https://www.openwall.com/lists/oss-security/2024/04/12/5Mailing List

Products

Same in every row:

  • Sources: nvd
ProductAffectedPlatform boundUrl
greenwoodsoftware:less<= 653no/v1/products/greenwoodsoftware/less
debian:debian_linux= 10.0no/v1/products/debian/debian_linux
netapp:solidfireall versionsno/v1/products/netapp/solidfire
netapp:bootstrap_osall versionsyes/v1/products/netapp/bootstrap_os
netapp:hci_storage_nodesall versionsno/v1/products/netapp/hci_storage_nodes

Projects

RepositoryLink kindsIndexedUrl
gwsw/lesscommit, fixyes/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