Wiz Agents & Workflows are here

CVE-2024-32487
NixOS vulnerability analysis and mitigation

Overview

CVE-2024-32487 affects the less utility through version 653, allowing OS command execution via a newline character in the name of a file due to mishandled quoting in filename.c. The vulnerability was discovered and disclosed in April 2024. The issue affects the less text file browser utility, which is commonly installed by default on many Unix-like systems (NVD, OSS Security).

Technical details

The vulnerability stems from less not correctly escaping newlines in pathnames when constructing command line of the input preprocessor. The issue specifically occurs in the filename.c component where quoting is mishandled. Exploitation requires the LESSOPEN environment variable to be set, which is default in many common cases. The vulnerability has been assigned a CVSS v3.1 base score of 8.6 (HIGH) with vector AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H (NVD, NetApp Advisory).

Impact

Successful exploitation of this vulnerability could lead to arbitrary command execution when processing files with crafted names. This could result in disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The impact is particularly significant as less is commonly used as a default pager program in many Unix-like systems (Debian Advisory, NetApp Advisory).

Mitigation and workarounds

A fix has been released in less version 654 which properly handles newline characters in filenames. Various distributions have backported the fix to their versions, including Debian which released version 487-0.1+deb10u1 for Debian 10 buster. The fix involves proper quoting of shell metacharacters and newline characters in filenames (GitHub Commit, Debian Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-30892HIGH7.8
  • NixOSNixOS
  • crun
NoYesMar 26, 2026
CVE-2026-33223MEDIUM5.4
  • NixOSNixOS
  • nats-fips
NoYesMar 25, 2026
CVE-2026-33222MEDIUM4.9
  • NixOSNixOS
  • nats-fips
NoYesMar 25, 2026
CVE-2026-33249MEDIUM4.3
  • NixOSNixOS
  • k3s-1.32
NoYesMar 25, 2026
CVE-2026-33248MEDIUM4.2
  • NixOSNixOS
  • github.com/nats-io/nats-server/v2
NoYesMar 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management