# CVE-2024-32487: less through 653 allows OS command execution via a newline character in the name of a file, because quoting is mishandled in filename.c.

- Severity: High 8.6 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2024-04-13T00:00:00.000Z
- Modified: 2026-06-17T07:29:43.313Z
- Weaknesses: CWE-96
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- netapp less: up to 653
- greenwoodsoftware less: up to 653
- debian debian_linux: 10.0
- netapp bootstrap_os: no versions given
- netapp hci_storage_nodes: no versions given
- netapp solidfire: no versions given

## References

- <https://www.openwall.com/lists/oss-security/2024/04/13/2> (mailing-list, patch)
- <https://www.openwall.com/lists/oss-security/2024/04/12/5> (mailing-list)
- <https://github.com/gwsw/less/commit/007521ac3c95bc76e3d59c6dbfe75d06c8075c33> (patch)
- <http://www.openwall.com/lists/oss-security/2024/04/15/1> (mailing-list)
- <https://security.netapp.com/advisory/ntap-20240605-0009/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/05/msg00018.html> (mailing-list)

## Sources

- CVE List: [CVE-2024-32487](https://www.cve.org/CVERecord?id=CVE-2024-32487), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-32487](https://nvd.nist.gov/vuln/detail/CVE-2024-32487), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-32487 · Whole record: https://cve.day/CVE-2024-32487.json · Rebuilt by cve.day 2026-11-25T22:58:39.166Z
