{"id":"UBUNTU-CVE-2017-16544","details":"In the add_match function in libbb/lineedit.c in BusyBox through 1.27.2, the tab autocomplete feature of the shell, used to get a list of filenames in a directory, does not sanitize filenames and results in executing any escape sequence in the terminal. This could potentially result in code execution, arbitrary file writes, or other attacks.","modified":"2026-01-30T01:59:13.879177Z","published":"2017-11-20T00:00:00Z","related":["USN-3935-1"],"upstream":["CVE-2017-16544"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-16544"},{"type":"REPORT","url":"https://www.twistlock.com/2017/11/20/cve-2017-16544-busybox-autocompletion-vulnerability/"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3935-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-16544"}],"affected":[{"package":{"name":"busybox","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/busybox@1:1.21.0-1ubuntu1.4?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.21.0-1ubuntu1.4"}]}],"versions":["1:1.20.0-8.1ubuntu1","1:1.20.0-9ubuntu1","1:1.20.0-9ubuntu2","1:1.21.0-1ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:1.21.0-1ubuntu1.4","binary_name":"busybox"},{"binary_version":"1:1.21.0-1ubuntu1.4","binary_name":"busybox-initramfs"},{"binary_version":"1:1.21.0-1ubuntu1.4","binary_name":"busybox-static"},{"binary_version":"1:1.21.0-1ubuntu1.4","binary_name":"busybox-syslogd"},{"binary_version":"1:1.21.0-1ubuntu1.4","binary_name":"udhcpc"},{"binary_version":"1:1.21.0-1ubuntu1.4","binary_name":"udhcpd"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-16544.json"}},{"package":{"name":"busybox","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/busybox@1:1.22.0-15ubuntu1.4?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.22.0-15ubuntu1.4"}]}],"versions":["1:1.22.0-15ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:1.22.0-15ubuntu1.4","binary_name":"busybox"},{"binary_version":"1:1.22.0-15ubuntu1.4","binary_name":"busybox-initramfs"},{"binary_version":"1:1.22.0-15ubuntu1.4","binary_name":"busybox-static"},{"binary_version":"1:1.22.0-15ubuntu1.4","binary_name":"busybox-syslogd"},{"binary_version":"1:1.22.0-15ubuntu1.4","binary_name":"udhcpc"},{"binary_version":"1:1.22.0-15ubuntu1.4","binary_name":"udhcpd"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-16544.json"}},{"package":{"name":"busybox","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/busybox@1:1.27.2-1ubuntu4?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:1.27.2-1ubuntu4"}]}],"versions":["1:1.22.0-19ubuntu2","1:1.27.2-1ubuntu3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:1.27.2-1ubuntu4","binary_name":"busybox"},{"binary_version":"1:1.27.2-1ubuntu4","binary_name":"busybox-initramfs"},{"binary_version":"1:1.27.2-1ubuntu4","binary_name":"busybox-static"},{"binary_version":"1:1.27.2-1ubuntu4","binary_name":"busybox-syslogd"},{"binary_version":"1:1.27.2-1ubuntu4","binary_name":"udhcpc"},{"binary_version":"1:1.27.2-1ubuntu4","binary_name":"udhcpd"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-16544.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}