cve.bz

CVE-2024-32487 Static Code Injection

8.6 highEPSS 0.6%Fix available

High (8.6). EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.6 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2024-04-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-96 Improper Neutralization of Directives in Statically Saved Code (Static Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-32487 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-32487?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-32487?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-32487 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
greenwoodsoftware:lessthrough 653
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10less487-0.1+deb10u1DLA-3823-1
Debian11less551-2+deb11u2DSA-5679-1
Debian12less590-2.1~deb12u2DEBIAN-CVE-2024-32487 DSA-5679-1
Debian13, 14less590-2.1DEBIAN-CVE-2024-32487
Ubuntu20.04:LTSless551-1ubuntu0.3UBUNTU-CVE-2024-32487 USN-6756-1
Ubuntu22.04:LTSless590-1ubuntu0.22.04.3UBUNTU-CVE-2024-32487 USN-6756-1
Ubuntu24.04:LTSless590-2ubuntu2.1UBUNTU-CVE-2024-32487 USN-6756-1
UbuntuPro:14.04:LTSless458-2ubuntu0.1~esm1UBUNTU-CVE-2024-32487 USN-6756-1
UbuntuPro:16.04:LTSless481-2.1ubuntu0.2+esm2UBUNTU-CVE-2024-32487 USN-6756-1
UbuntuPro:18.04:LTSless487-0.1ubuntu0.1~esm2UBUNTU-CVE-2024-32487 USN-6756-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationless, less-debuginfo0:458-10.el7_9RHSA-2024:3669
Red Hatenterprise_linux:8::baseosless, less-debuginfo, less-debugsource0:530-3.el8_10RHSA-2024:4256
Red Hatenterprise_linux:9::baseosless, less-debuginfo, less-debugsource0:590-4.el9_4RHSA-2024:3513
Red Hatrhel_aus:8.2::baseosless, less-debuginfo, less-debugsource0:530-2.el8_2RHSA-2024:4366
Red Hatrhel_aus:8.4::baseos, rhel_e4s:8.4::baseos, rhel_tus:8.4::baseosless, less-debuginfo, less-debugsource0:530-2.el8_4RHSA-2024:4416
Red Hatrhel_aus:8.6::baseos, rhel_e4s:8.6::baseos, rhel_tus:8.6::baseosless, less-debuginfo, less-debugsource0:530-3.el8_6RHSA-2024:4418
Red Hatrhel_e4s:9.0::baseosless, less-debuginfo, less-debugsource0:590-2.el9_0RHSA-2024:4528
Red Hatrhel_eus:8.8::baseosless, less-debuginfo, less-debugsource0:530-3.el8_8RHSA-2024:4369
Red Hatrhel_eus:9.2::baseosless, less-debuginfo, less-debugsource0:590-3.el9_2RHSA-2024:4529
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 6 moreless530-150000.3.9.1SUSE-SU-2024:1534-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 7 moreless590-150400.3.9.1SUSE-SU-2024:1598-1
SUSELinux Enterprise Micro 5.5less590-150400.3.9.1SUSE-SU-2024:1598-2
SUSELinux Enterprise Module for Basesystem 15 SP6less643-150600.3.3.1SUSE-SU-2024:2060-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5less458-7.15.1SUSE-SU-2024:1550-1
SUSELinux Micro 6.0less633-3.1SUSE-SU-2025:20007-1
SUSELinux Micro 6.1less668-slfo.1.1_1.1SUSE-SU-2025:20394-1
openSUSELeap 15.5, Leap Micro 5.3, Leap Micro 5.4less590-150400.3.9.1SUSE-SU-2024:1598-1
openSUSELeap 15.6less643-150600.3.3.1SUSE-SU-2024:2060-1
openSUSETumbleweedless668-2.1openSUSE-SU-2025:14862-1
AlmaLinux8less530-3.el8_10ALSA-2024:4256
AlmaLinux9less590-4.el9_4ALSA-2024:3513
Rocky Linux8less0:530-3.el8_10RLSA-2024:4256
Rocky Linux9less0:590-4.el9_4RLSA-2024:3513
Azure Linux2less590-4AZL-39933
Azure Linux3less643-2AZL-39914

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The described vulnerability in less poses an Important security risk due to its potential for arbitrary OS command execution. Exploitation of this vulnerability allows an attacker to inject malicious commands through specially crafted filenames containing newline characters. This could lead to unauthorized access, data exfiltration, or even full system compromise, depending on the privileges of the user executing the less command. Furthermore, the mishandling of the LESSOPEN environment variable exacerbates the issue, as it can be set by default in many installations, providing an additional vector for exploitation.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7less-0:458-10.el7_9Fixed 2024-06-06RHSA-2024:3669
Red Hat Enterprise Linux 8less-0:530-3.el8_10Fixed 2024-07-02RHSA-2024:4256
Red Hat Enterprise Linux 8.2 Advanced Update Supportless-0:530-2.el8_2Fixed 2024-07-08RHSA-2024:4366
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportless-0:530-2.el8_4Fixed 2024-07-09RHSA-2024:4416
Red Hat Enterprise Linux 8.4 Telecommunications Update Serviceless-0:530-2.el8_4Fixed 2024-07-09RHSA-2024:4416
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsless-0:530-2.el8_4Fixed 2024-07-09RHSA-2024:4416
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportless-0:530-3.el8_6Fixed 2024-07-09RHSA-2024:4418
Red Hat Enterprise Linux 8.6 Telecommunications Update Serviceless-0:530-3.el8_6Fixed 2024-07-09RHSA-2024:4418
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsless-0:530-3.el8_6Fixed 2024-07-09RHSA-2024:4418
Red Hat Enterprise Linux 8.8 Extended Update Supportless-0:530-3.el8_8Fixed 2024-07-08RHSA-2024:4369
Red Hat Enterprise Linux 9less-0:590-4.el9_4Fixed 2024-05-30RHSA-2024:3513
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsless-0:590-2.el9_0Fixed 2024-07-15RHSA-2024:4528
Red Hat Enterprise Linux 9.2 Extended Update Supportless-0:590-3.el9_2Fixed 2024-07-15RHSA-2024:4529
Red Hat Enterprise Linux 10lessNot affected
Red Hat Enterprise Linux 6lessOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-32487.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON