Skip to content
OpenAdvisories
High · 8.6 CVE-2024-32487 EUVD-2024-30291GHSA-f53j-pgm5-c4r3

less through 653 allows OS command execution via a newline character in the name of a file, because quoting is mishandled in filename.c. Ex…

Published Apr 13, 2024 · Updated Aug 2, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 less 590-2.1 —
Debian 13 less 590-2.1 —
Debian 12 less 590-2.1~deb12u2 DSA-5679-1
Debian 11 less 551-2+deb11u2 DSA-5679-1
Debian 10 less 487-0.1+deb10u1 DLA-3823-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS less 590-2ubuntu2.1 USN-6756-1
Ubuntu 22.04 LTS less 590-1ubuntu0.22.04.3 USN-6756-1
Ubuntu 20.04 LTS less 551-1ubuntu0.3 USN-6756-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS less 487-0.1ubuntu0.1~esm2 USN-6756-1
Ubuntu Pro 16.04 LTS less 481-2.1ubuntu0.2+esm2 USN-6756-1
Ubuntu Pro 14.04 LTS less 458-2ubuntu0.1~esm1 USN-6756-1
ReleasePackageFixed inAdvisory
RHEL 9 less 590-4.el9_4 RHSA-2024:3513
RHEL 8 less 530-3.el8_10 RHSA-2024:4256
RHEL 7 less 458-10.el7_9 RHSA-2024:3669
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.2 EUS less 590-3.el9_2 RHSA-2024:4529
RHEL 9.0 E4S less 590-2.el9_0 RHSA-2024:4528
RHEL 8.8 EUS less 530-3.el8_8 RHSA-2024:4369
RHEL 8.6 TUS less 530-3.el8_6 RHSA-2024:4418
RHEL 8.6 E4S less 530-3.el8_6 RHSA-2024:4418
RHEL 8.6 AUS less 530-3.el8_6 RHSA-2024:4418
RHEL 8.4 TUS less 530-2.el8_4 RHSA-2024:4416
RHEL 8.4 E4S less 530-2.el8_4 RHSA-2024:4416
RHEL 8.4 AUS less 530-2.el8_4 RHSA-2024:4416
RHEL 8.2 AUS less 530-2.el8_2 RHSA-2024:4366

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 less 590-4.el9_4 ALSA-2024:3513
AlmaLinux 8 less 530-3.el8_10 ALSA-2024:4256

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 less 590-4.el9_4 RLSA-2024:3513
Rocky Linux 8 less 530-3.el8_10 RLSA-2024:4256
ReleasePackageFixed inAdvisory
SLES 15 SP6 less 643-150600.3.3.1 SUSE-SU-2024:2060-1
SLES 15 SP5 less 590-150400.3.9.1 SUSE-SU-2024:1598-1
SLES 15 SP4 less 590-150400.3.9.1 SUSE-SU-2024:1598-1
SLES 15 SP3 less 530-150000.3.9.1 SUSE-SU-2024:1534-1
SLES 15 SP2 less 530-150000.3.9.1 SUSE-SU-2024:1534-1
Show 18 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 less 458-7.15.1 SUSE-SU-2024:1550-1
SLES for SAP 15 SP4 less 590-150400.3.9.1 SUSE-SU-2024:1598-1
SLES for SAP 15 SP3 less 530-150000.3.9.1 SUSE-SU-2024:1534-1
SLES for SAP 15 SP2 less 530-150000.3.9.1 SUSE-SU-2024:1534-1
SLES for SAP 12 SP5 less 458-7.15.1 SUSE-SU-2024:1550-1
SLE Micro 6.1 less 668-slfo.1.1_1.1 SUSE-SU-2025:20394-1
SLE Micro 6.0 less 633-3.1 SUSE-SU-2025:20007-1
SLE Micro 5.5 less 590-150400.3.9.1 SUSE-SU-2024:1598-2, SUSE-SU-2024:1598-1
SLE Micro 5.4 less 590-150400.3.9.1 SUSE-SU-2024:1598-1
SLE Micro 5.3 less 590-150400.3.9.1 SUSE-SU-2024:1598-1
SLE Micro 5.2 less 530-150000.3.9.1 SUSE-SU-2024:1534-1
SLE Micro 5.1 less 530-150000.3.9.1 SUSE-SU-2024:1534-1
SLE HPC 15 SP4 less 590-150400.3.9.1 SUSE-SU-2024:1598-1
SLE HPC 15 SP3 less 530-150000.3.9.1 SUSE-SU-2024:1534-1
SLE HPC 15 SP2 less 530-150000.3.9.1 SUSE-SU-2024:1534-1
SUSE Manager Server 4.3 less 590-150400.3.9.1 SUSE-SU-2024:1598-1
SUSE Manager Proxy 4.3 less 590-150400.3.9.1 SUSE-SU-2024:1598-1
SUSE Enterprise Storage 7.1 less 530-150000.3.9.1 SUSE-SU-2024:1534-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed less 668-2.1 openSUSE-SU-2025:14862-1
openSUSE Leap 15.6 less 643-150600.3.3.1 SUSE-SU-2024:2060-1
openSUSE Leap 15.5 less 590-150400.3.9.1 SUSE-SU-2024:1598-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.4 less 590-150400.3.9.1 SUSE-SU-2024:1598-1
openSUSE Leap Micro 5.3 less 590-150400.3.9.1 SUSE-SU-2024:1598-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 less 608-2.amzn2023.0.2 ALAS2023-2024-622
Amazon Linux 2 less 458-9.amzn2.0.4 ALAS2-2024-2547

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 less 643-2 —
Azure Linux 2 (CBL-Mariner) less 590-4 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 less 590-4.el9_4 ELSA-2024-3513
Oracle Linux 8 less 530-3.el8_10 ELSA-2024-4256
Oracle Linux 7 less 458-10.el7_9 ELSA-2024-3669

Advisories 33

References