CVE-2014-9682: Dns sync Dns-sync Command Injection Vulnerability Vulnerability

CRITICAL
Advisory Identifier: GHSA-q5pq-pgrv-fh89
CWE-77
Published
Advisory Summary

CVE-2014-9682 is a CRITICAL dns-sync command injection vulnerability vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Dns sync libraries in the npm ecosystem. The issue involves dns-sync command injection vulnerability. Remediation is available by upgrading affected packages to version 0.1.1.

CVE-2014-9682 at a Glance

CVE Identifier CVE-2014-9682
GHSA Identifier GHSA-q5pq-pgrv-fh89
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Dns sync
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2014-9682

To remediate this vulnerability, upgrade all affected Dns sync dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

dns-sync fixed: 0.1.1
npm install dns-sync@0.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls dns-sync

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2014-9682, inspect your project dependencies using npm:

npm ls dns-sync

Analyze the terminal output to locate any version of Dns sync in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.1), your application is affected.

Note: The npm ls dns-sync command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Dns sync, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The dns-sync module before 0.1.1 for node.js allows context-dependent attackers to execute arbitrary commands via shell metacharacters in the first argument to the resolve API function.

CVE-2014-9682 Affected Dns sync Versions

1 component(s)
Fixed Versions:
0.1.1
Product / Package Ecosystem Affected Versions Fixed Version
dns-sync
npm
< 0.1.1
0.1.1

References

Frequently Asked Questions

What is CVE-2014-9682?
CVE-2014-9682 is a security vulnerability in Dns sync involving dns-sync command injection vulnerability under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Dns sync versions are affected?
Affected versions include releases prior to 0.1.1 across affected packages: dns-sync.
What version fixes CVE-2014-9682?
Upgrading to 0.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dns-sync affected?
Yes, dns-sync is affected in releases prior to 0.1.1. Upgrade your dependency to 0.1.1 or later.
What CWE is associated with CVE-2014-9682?
CVE-2014-9682 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check npm dependencies for CVE-2014-9682?
Run the dependency tree command: 'npm ls dns-sync'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q5pq-pgrv-fh89",
  "modified" : "2023-09-05T23:30:40Z",
  "published" : "2017-10-24T18:33:36Z",
  "aliases" : [ "CVE-2014-9682" ],
  "summary" : "dns-sync command injection vulnerability",
  "details" : "The dns-sync module before 0.1.1 for node.js allows context-dependent attackers to execute arbitrary commands via shell metacharacters in the first argument to the resolve API function.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "dns-sync"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-9682"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/skoranga/node-dns-sync/issues/1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/skoranga/node-dns-sync/commit/d9abaae384b198db1095735ad9c1c73d7b890a0d"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-q5pq-pgrv-fh89"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/skoranga/node-dns-sync"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2014/11/11/6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:51:07Z",
    "nvd_published_at" : null
  }
}