Security Advisory

CVE-2017-16544: BusyBox Shell Tab-Completion Escape Codes

Last updated:
  • CVE-2017-16544

CVE-2017-16544 is a flaw in the BusyBox shell's tab completion, in versions up to 1.27.2: file names are printed without sanitising, so a crafted name full of terminal escape sequences is acted on by the administrator's terminal when they press Tab. NVD scores it 8.8. It is fixed in BusyBox 1.28.0, and CISA lists it in the discontinued Red Lion N-Tron 702-W and 702M12-W switches, which will not be updated.

Vulnerability summary

CVSS base score

8.8

High severity

EPSS score (FIRST)

6.1%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2017-16544 · Source: NVD

Affected components

ComponentCPEVersion range
BusyBoxcpe:2.3:a:busybox:busybox:*:*:*:*:*:*:*:*Up to and including 1.27.2 (NVD); fixed in 1.28.0 (commit c3797d40, BusyBox news). Debian back-ports: 1:1.27.2-2 (unstable), 1:1.22.0-9+deb8u2 (jessie), 1:1.22.0-19+deb9u1 (stretch)
Red Lion N-Tron 702-Wcpe:2.3:o:redlion:n-tron_702-w_firmware:*:*:*:*:*:*:*:*All versions (CISA ICSA-20-240-01); discontinued in 2018, cannot be updated
Red Lion N-Tron 702M12-Wcpe:2.3:o:redlion:n-tron_702m12-w_firmware:*:*:*:*:*:*:*:*All versions (CISA ICSA-20-240-01); discontinued in 2018, cannot be updated

What does this mean for affected devices?

NVD carries the MITRE-assigned description: "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." NVD classes it CWE-94 (code injection). The record was published on 2017-11-20 (NVD, CVE record).

How severe is it, and who scored it?

NVD's Primary score is CVSS v3.1 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), with a CVSS v2 score of 6.5. MITRE, the CNA, published no score; CISA's ADP container on the CVE record gives the same v3.1 8.8 vector. In CISA's N-Tron advisory ICSA-20-240-01 the flaw also scores CVSS v3.0 8.8, filed under CWE-1104 (use of unmaintained third-party components) because the finding there is the outdated BusyBox build itself.

How does the attack work?

BusyBox's shell line editor prints matching file names when a user presses Tab. Before the fix it printed them raw, so a file name that contains terminal escape sequences is interpreted by the user's terminal instead of shown as text. An attacker who can create a file where an administrator later tab-completes (an upload directory, a shared temporary directory, a mounted USB stick) can make the terminal act on those sequences. What that achieves depends on the terminal emulator; the CVE text names code execution and arbitrary file writes as possible outcomes. The privilege needed is the ability to create a file, which is why NVD scores PR:L.

Which firmware is affected?

Any BusyBox build up to and including 1.27.2 with the shell line editor enabled, which NVD's CPE configuration expresses as busybox versions through 1.27.2. NVD also lists Debian 8 and 9, Ubuntu 14.04 and 16.04, VMware ESXi 6.0, 6.5 and 6.7, and Red Lion's N-Tron 702-W and 702M12-W firmware.

For the industrial angle, CISA's ICSA-20-240-01 lists CVE-2017-16544 for all versions of the N-Tron 702-W and 702M12-W wireless switches, which Red Lion discontinued in 2018 and cannot update. SEC Consult, who reported the set, verified the autocompletion flaw on an emulated 702-W running firmware 2.0.26 by creating a file whose name holds escape sequences and pressing Tab after ls. The same advisory covers the switch's undocumented root web shell, CVE-2020-16204, which is the more direct path to the device.

Where is it fixed?

Upstream, Denys Vlasenko's commit c3797d40 "lineedit: do not tab-complete any strings which have control characters" (2017-11-07) adds the check to add_match. The BusyBox news page lists that change in BusyBox 1.28.0, released on 2 January 2018, and the GitHub mirror's compare view places the commit in the 1_28_0 tag but not in 1_27_2. Distribution trackers back-ported it: the Debian tracker shows the fix in 1:1.27.2-2 for unstable, 1:1.22.0-9+deb8u2 for jessie (DLA-1445-1) and 1:1.22.0-19+deb9u1 for stretch (DLA-2559-1). For an appliance, check the BusyBox version string in the firmware image against 1.28.0 or a vendor back-port; the N-Tron 702-W has neither, so it needs replacement or isolation.

How do you mitigate it?

Update BusyBox to 1.28.0 or later, or a distribution package with the back-port. Where firmware cannot change, restrict shell access to a few administrators, avoid tab completion in directories that untrusted users or devices can write to, and use a terminal emulator that does not act on dangerous escape sequences. On the 702-W, keep the switch isolated, as CISA recommends.

Our Red Lion Sixnet, N-Tron and Crimson guide places this flaw in the 702-W advisory, the BusyBox guide shows how to find the BusyBox version in firmware, and the command injection fix guide covers the weakness class. Related BusyBox shell advisories: CVE-2021-42375 (ash denial of service) and CVE-2022-48174 (ash stack overflow).

CVE-2017-16544 is not in the CISA KEV catalog as of 2026-11-22 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS gives it 0.06136, the 93.6th percentile, in the 2026-11-21 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Command injection. Our practical guide covers how to detect, fix, verify and disclose it: How to fix command injection in embedded firmware.

Evidence

  • NVD (read 2026-11-22): status Modified, published 2017-11-20, last modified 2026-06-17; NVD Primary CVSS v3.1 8.8 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H and CVSS v2 6.5; CISA ADP Secondary v3.1 8.8; CWE-94; CPEs busybox up to and including 1.27.2, Debian 8.0 and 9.0, VMware ESXi 6.0/6.5/6.7, Red Lion n-tron_702-w and n-tron_702m12-w firmware, Ubuntu 14.04 and 16.04; references the busybox.net commit c3797d40 and ICSA-20-240-01. — NVD
  • CVE record (checked 2026-11-22): state PUBLISHED, CNA MITRE, published 2017-11-20; no CNA score; CISA-ADP CVSS v3.1 8.8. — CVE.org
  • CISA CSAF ICSA-20-240-01 (2020-08-27), read 2026-11-22: CVE-2017-16544 filed as CWE-1104, CVSS v3.0 8.8 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; N-Tron 702-W and 702M12-W all versions; discontinued in 2018 and cannot be updated. — CISA CSAF ICSA-20-240-01
  • SEC Consult advisory (read 2026-11-22): verified the BusyBox autocompletion flaw on an emulated 702-W (firmware 2.0.26) with a file name containing escape sequences and tab completion after ls. — SEC Consult
  • Upstream commit c3797d40a1c57352192c6106cc0f435e7d9c11e8 by Denys Vlasenko, 2017-11-07, 'lineedit: do not tab-complete any strings which have control characters' (add_match); GitHub compare API (2026-11-22): tag 1_28_0 is ahead of the commit, 1_27_2 diverged. BusyBox news lists the change under 1.28.0, released 2 January 2018. — BusyBox
  • Debian security tracker (read 2026-11-22): fixed in 1:1.27.2-2 (unstable, bug 882258), 1:1.22.0-9+deb8u2 (jessie, DLA-1445-1), 1:1.22.0-19+deb9u1 (stretch, DLA-2559-1); bookworm, trixie, forky and sid fixed. — Debian
  • Not in the CISA KEV catalog, version 2026.11.20 (1,790 entries), checked 2026-11-22. — CISA KEV
  • EPSS 0.06136, percentile 0.93623, dataset 2026-11-21, read 2026-11-22. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. BusyBox upstream fix commit c3797d40 (GitHub mirror)
  3. BusyBox news: 1.28.0 release notes
  4. Debian security tracker CVE-2017-16544
  5. CISA CSAF: ICSA-20-240-01 Red Lion N-Tron 702-W, 702M12-W (machine-readable advisory)
  6. SEC Consult advisory: multiple vulnerabilities in Red Lion N-Tron 702-W and 702M12-W
  7. CVE.org record CVE-2017-16544 (CNA: MITRE)
  8. CISA KEV
  9. FIRST EPSS

Frequently asked questions

Which BusyBox version fixes CVE-2017-16544?

BusyBox 1.28.0, released on 2 January 2018, contains the upstream commit c3797d40 that stops tab completion of names with control characters. Debian back-ported it to 1:1.27.2-2 (unstable), 1:1.22.0-9+deb8u2 (jessie) and 1:1.22.0-19+deb9u1 (stretch). Builds through 1.27.2 without a back-port are affected.

Can CVE-2017-16544 be exploited without shell access?

Not directly. The attacker has to place a file with a crafted name where an administrator later presses Tab in the BusyBox shell, and the effect depends on the terminal emulator. The more serious risk on many devices is that an old BusyBox build signals other unpatched components, as SEC Consult found on the N-Tron 702-W.

Are Red Lion N-Tron 702-W switches affected?

Yes. CISA's ICSA-20-240-01 lists CVE-2017-16544 for all versions of the N-Tron 702-W and 702M12-W. The series was discontinued in 2018 and cannot be updated, so Red Lion recommends using it only locally within a secure network.

Is CVE-2017-16544 exploited in the wild?

It is not in the CISA KEV catalog as of 2026-11-22 (catalog version 2026.11.20, 1,790 entries). Its EPSS score is 0.06136, the 93.6th percentile, in the 2026-11-21 dataset.