# CVE-2014-9682: dns-sync command injection via resolve function

Source: https://junglewise.ai/threats/cve-2014-9682-dns-sync-command-injection-via-resolve-function  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2017-10-24. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2014-9682 · Severity: info · CVSS 9.8 · Published 2017-10-24

The dns-sync Node.js library is used to perform DNS lookups. A vulnerability in the resolve function allows attackers to inject shell commands through specially crafted hostnames, leading to arbitrary command execution on systems using the library.

Technologies: [dns-sync (npm)](https://junglewise.ai/threats/technologies/dns-sync). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## 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

## References

- [https://github.com/skoranga/node-dns-sync/issues/1](https://github.com/skoranga/node-dns-sync/issues/1)

## Related threats

- [dns-sync command injection](https://junglewise.ai/threats/dns-sync-command-injection-ec5bbb19)
- [node-dns-sync command injection](https://junglewise.ai/threats/cve-2020-11079-node-dns-sync-command-injection)
- [dns-sync command injection in resolve function](https://junglewise.ai/threats/dns-sync-command-injection-in-resolve-function-735f81d8)
- [dns-sync command injection in resolve method](https://junglewise.ai/threats/cve-2017-16100-dns-sync-command-injection-in-resolve-method)
