{"id":"UBUNTU-CVE-2024-32487","details":"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.","modified":"2026-01-30T02:01:04.951858Z","published":"2024-04-13T15:15:00Z","related":["USN-6756-1"],"upstream":["CVE-2024-32487"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-32487"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-32487"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2024/04/12/5"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6756-1"}],"affected":[{"package":{"name":"less","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/less@458-2ubuntu0.1~esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"458-2ubuntu0.1~esm1"}]}],"versions":["458-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"458-2ubuntu0.1~esm1","binary_name":"less"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-32487.json"}},{"package":{"name":"less","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/less@481-2.1ubuntu0.2+esm2?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"481-2.1ubuntu0.2+esm2"}]}],"versions":["458-3","458-3ubuntu1","481-2","481-2ubuntu1","481-2.1","481-2.1ubuntu0.1","481-2.1ubuntu0.2","481-2.1ubuntu0.2+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"481-2.1ubuntu0.2+esm2","binary_name":"less"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-32487.json"}},{"package":{"name":"less","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/less@487-0.1ubuntu0.1~esm2?arch=source&distro=esm-infra/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"487-0.1ubuntu0.1~esm2"}]}],"versions":["481-2.1ubuntu2","481-2.1ubuntu3","487-0.1","487-0.1ubuntu0.1~esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"487-0.1ubuntu0.1~esm2","binary_name":"less"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-32487.json"}},{"package":{"name":"less","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/less@551-1ubuntu0.3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"551-1ubuntu0.3"}]}],"versions":["487-0.1build1","551-1","551-1ubuntu0.1","551-1ubuntu0.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"551-1ubuntu0.3","binary_name":"less"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-32487.json"}},{"package":{"name":"less","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/less@590-1ubuntu0.22.04.3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"590-1ubuntu0.22.04.3"}]}],"versions":["551-2","551-2build1","590-1","590-1build1","590-1ubuntu0.22.04.1","590-1ubuntu0.22.04.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"590-1ubuntu0.22.04.3","binary_name":"less"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-32487.json"}},{"package":{"name":"less","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/less@590-2ubuntu2.1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"590-2ubuntu2.1"}]}],"versions":["590-2","590-2ubuntu1","590-2ubuntu2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"590-2ubuntu2.1","binary_name":"less"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-32487.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}