{"id":"CVE-2017-16544","published":"2017-11-20T15:00:00Z","modified":"2025-06-09T15:35:03Z","title":"In the add_match function in libbb/lineedit.c in BusyBox through 1.27.2, the tab autocomplete feature of the shell…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.06136,"percentile":0.93621,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://www.twistlock.com/2017/11/20/cve-2017-16544-busybox-autocompletion-vulnerability/","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00037.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://git.busybox.net/busybox/commit/?id=c3797d40a1c57352192c6106cc0f435e7d9c11e8","tags":["x_refsource_MISC"]},{"url":"https://usn.ubuntu.com/3935-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://seclists.org/fulldisclosure/2019/Jun/18","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://seclists.org/bugtraq/2019/Jun/14","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://seclists.org/fulldisclosure/2019/Sep/7","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://seclists.org/bugtraq/2019/Sep/7","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://packetstormsecurity.com/files/154361/Cisco-Device-Hardcoded-Credentials-GNU-glibc-BusyBox.html","tags":["x_refsource_MISC"]},{"url":"http://www.vmware.com/security/advisories/VMSA-2019-0013.html","tags":["x_refsource_CONFIRM"]},{"url":"http://packetstormsecurity.com/files/154536/VMware-Security-Advisory-2019-0013.html","tags":["x_refsource_MISC"]},{"url":"http://seclists.org/fulldisclosure/2020/Mar/15","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://seclists.org/fulldisclosure/2020/Aug/20","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://us-cert.cisa.gov/ics/advisories/icsa-20-240-01","tags":["x_refsource_MISC"]},{"url":"http://seclists.org/fulldisclosure/2020/Sep/6","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://seclists.org/fulldisclosure/2021/Jan/39","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/02/msg00020.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://seclists.org/fulldisclosure/2021/Aug/21","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://seclists.org/fulldisclosure/2022/Jun/36","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://packetstormsecurity.com/files/167552/Nexans-FTTO-GigaSwitch-Outdated-Components-Hardcoded-Backdoor.html","tags":["x_refsource_MISC"]}],"priority":{"score":29.9,"factors":[{"name":"EPSS percentile","points":18.72},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-06-09T15:34:08.917753Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw lies in the add_match function in libbb/lineedit.c of BusyBox through 1.27.2, where the shell's tab autocomplete feature fails to sanitise filenames before listing them. Because the unsanitised names are passed to the terminal, any escape sequence embedded in a filename is executed, and an attacker who can place such a file in a directory the user tab-completes in may achieve code execution or arbitrary file writes, which requires the victim to use tab completion in that directory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:02:17Z"},"euvd":{"id":"EUVD-2017-7737","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/154361/Cisco-Device-Hardcoded-Credentials-GNU-glibc-BusyBox.html","http://packetstormsecurity.com/files/154536/VMware-Security-Advisory-2019-0013.html","http://packetstormsecurity.com/files/167552/Nexans-FTTO-GigaSwitch-Outdated-Components-Hardcoded-Backdoor.html"]}