Quick answers
- Is CVE-2017-16100 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2017-16100 being exploited in the wild.
- How severe is CVE-2017-16100?
- Informational severity, published 18 July 2018.
- Which products and versions are affected?
- dns-sync (npm) SEMVER:introduced=0,fixed=0.1.1.
- Is there a fix for CVE-2017-16100?
- Yes. dns-sync (npm): upgrade to 0.1.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2017-16100 attacked?
- It is attacked over the network or with local access, in a software library.
- Am I affected by CVE-2017-16100?
- Check whether you run dns-sync (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- dns-sync (npm): upgrade to 0.1.1 or later
npm install dns-sync@0.1.1
Technical details
The vulnerability is a command injection flaw (CWE-94) in the resolve() method of dns-sync. The vulnerable code constructs a shell command by concatenating user input (hostname parameter) into a command string without proper escaping or sanitization, then executes it via shell.exec(). An attacker can inject shell metacharacters (e.g., $(id)) into the hostname parameter to break out of the intended command and execute arbitrary commands. Attack vector is local/network depending on application context; no authentication is required if the resolve() method is exposed to untrusted input. Versions prior to 0.1.1 are affected. A fix is available in version 0.1.1 and later.
Affected products
- dns-sync All versions before 0.1.1
Identifiers
- CVE-2017-16100
- GHSA-jcw8-r9xm-32c6
Timeline
- 2014-11-10: disclosed
- 2018-07-18: advisory