Bug 1515713 (CVE-2017-16544) - CVE-2017-16544 busybox: Insufficient sanitization of filenames when autocompleting
Summary: CVE-2017-16544 busybox: Insufficient sanitization of filenames when autocompl...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2017-16544
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1515259
Blocks: 1515717
TreeView+ depends on / blocked
 
Reported: 2017-11-21 09:26 UTC by Andrej Nemec
Modified: 2021-03-11 16:20 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-26 10:27:15 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2017-11-21 09:26:35 UTC
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 when combined with the usage of vulnerable / buggy terminal emulators.

Upstream patch:

https://git.busybox.net/busybox/commit/?id=c3797d40a1c57352192c6106cc0f435e7d9c11e8

External References:

https://www.twistlock.com/2017/11/20/cve-2017-16544-busybox-autocompletion-vulnerability/

Comment 1 Andrej Nemec 2017-11-21 09:27:25 UTC
Created busybox tracking bugs for this issue:

Affects: fedora-all [bug 1515259]


Note You need to log in before you can comment on or make changes to this bug.