Quick answers
- Is CVE-2014-9682 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2014-9682 being exploited in the wild.
- How severe is CVE-2014-9682?
- Informational severity, with a CVSS score of 9.8, published 24 October 2017.
- Which products and versions are affected?
- dns-sync (npm) before 0.1.1.
- Is there a fix for CVE-2014-9682?
- A patch was published on 2014-11-10: Fixed in version 0.1.1 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2014-9682 attacked?
- It is attacked over the network.
- Am I affected by CVE-2014-9682?
- 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.
Technical details
The dns-sync Node.js library versions before 0.1.1 contain a command injection vulnerability (CWE-77) in the resolve() API function. The vulnerability exists because user-supplied hostnames are passed directly into a shell command without proper sanitization. The vulnerable code constructs a shell command by concatenating the hostname argument with a node script path, then executes it via shell.exec(). An attacker can inject shell metacharacters (such as command substitution syntax like $(command)) into the hostname argument to execute arbitrary commands with the privileges of the Node.js process. No authentication or special privileges are required; any code calling the resolve() function with untrusted input is vulnerable. The vulnerability was fixed in version 0.1.1.
Affected products
- npm dns-sync before 0.1.1
Identifiers
- CVE-2014-9682
- GHSA-q5pq-pgrv-fh89
Timeline
- 2014-11-10: disclosed
- 2014-11-10: patched: Fixed in version 0.1.1