Skip to main content
VulnerabilityPublished Updated

CVE-2024-32487: less through 653 allows OS command execution via a newline character in the name of a file, because

Affects lessSource GCVE Database

0
Compare
Authoritative record:CVE-2024-32487· High 8.6

Not known to be exploited · CVSS 8.6 High · fixed in 458-2ubuntu0.1~esm1 : patch less soon.

Data as of 24 Nov 2026, 21:14 UTC

CVSS 3.1 base score
8.6High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 458-2ubuntu0.1~esm1, 481-2.1ubuntu0.2+esm2, 487-0.1ubuntu0.1~esm2 +3
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSlesspkg:deb/ubuntu/less?arch=source&distro=nobleOther threatsAffected
  • <590-2ubuntu2.1
Fixed in
  • 590-2ubuntu2.1
Ubuntu 22.04 LTSlesspkg:deb/ubuntu/less?arch=source&distro=jammyOther threatsAffected
  • <590-1ubuntu0.22.04.3
Fixed in
  • 590-1ubuntu0.22.04.3
Ubuntu 20.04 LTSlesspkg:deb/ubuntu/less?arch=source&distro=focalOther threatsAffected
  • <551-1ubuntu0.3
Fixed in
  • 551-1ubuntu0.3
Ubuntu Pro 18.04 LTSlesspkg:deb/ubuntu/less?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <487-0.1ubuntu0.1~esm2
Fixed in
  • 487-0.1ubuntu0.1~esm2
Ubuntu Pro 16.04 LTSlesspkg:deb/ubuntu/less?arch=source&distro=esm-infra/xenialOther threatsAffected
  • <481-2.1ubuntu0.2+esm2
  • =481-2ubuntu1
Fixed in
  • 481-2.1ubuntu0.2+esm2
Ubuntu Pro 14.04 LTSlesspkg:deb/ubuntu/less?arch=source&distro=trusty/esmOther threatsAffected
  • <458-2ubuntu0.1~esm1
Fixed in
  • 458-2ubuntu0.1~esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…