CVE-2014-6394: Send Path Traversal Vulnerability

LOW
Advisory Identifier: GHSA-xwg4-93c6-3h42
CWE-22
Published
Advisory Summary

CVE-2014-6394 is a LOW path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Send libraries in the npm ecosystem. The issue involves directory traversal in send. Remediation is available by upgrading affected packages to version 0.8.4.

CVE-2014-6394 at a Glance

CVE Identifier CVE-2014-6394
GHSA Identifier GHSA-xwg4-93c6-3h42
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Send
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2014-6394

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

send fixed: 0.8.4
npm install send@0.8.4
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 send

How to Check if You Are Affected

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

npm ls send

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

Note: The npm ls send 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Send, 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

Versions 0.8.3 and earlier of `send` are affected by a directory traversal vulnerability. When relying on the root option to restrict file access it may be possible for an application consumer to escape out of the restricted directory and access files in a similarly named directory. For example, `static(_dirname + '/public')` would allow access to `_dirname + '/public-restricted'`. ## Recommendation Update to version 0.8.4 or later.

CVE-2014-6394 Affected Send Versions

1 component(s)
Fixed Versions:
0.8.4
Product / Package Ecosystem Affected Versions Fixed Version
send
npm
< 0.8.4
0.8.4

References

NVD — CVE-2014-6394 NVD
https://nvd.nist.gov/vuln/detail/CVE-2014-6394
Send Source Repository REPOSITORY
https://github.com/visionmedia/send/pull/59
Security Fix Commit FIX COMMIT
https://github.com/visionmedia/send/commit/9c6ca9b2c0b880afd3ff91ce0d211213c5fa5f9a
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1146063
exchange.xforce.ibmcloud.com/vulnerabilities/967... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/96727
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-xwg4-93c6-3h42
Send Source Repository REPOSITORY
https://github.com/visionmedia/send
support.apple.com/ht205217 WEB
https://support.apple.com/HT205217
www.npmjs.com/advisories/32 WEB
https://www.npmjs.com/advisories/32
Send Security Information SECURITY
http://lists.apple.com/archives/security-announce/2015/Sep/msg00002.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2014-October/139938.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2014-October/140020.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2014-September/139415.html
secunia.com/advisories/62170 WEB
http://secunia.com/advisories/62170
www-01.ibm.com/support/docview.wss WEB
http://www-01.ibm.com/support/docview.wss?uid=swg21687263
Send Security Information SECURITY
http://www.openwall.com/lists/oss-security/2014/09/24/1
Send Security Information SECURITY
http://www.openwall.com/lists/oss-security/2014/09/30/10
Send Security Information SECURITY
http://www.securityfocus.com/bid/70100

Frequently Asked Questions

What is CVE-2014-6394?
CVE-2014-6394 is a security vulnerability in Send involving Directory Traversal in send under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Send versions are affected?
Affected versions include releases prior to 0.8.4 across affected packages: send.
What version fixes CVE-2014-6394?
Upgrading to 0.8.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is send affected?
Yes, send is affected in releases prior to 0.8.4. Upgrade your dependency to 0.8.4 or later.
What CWE is associated with CVE-2014-6394?
CVE-2014-6394 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check npm dependencies for CVE-2014-6394?
Run the dependency tree command: 'npm ls send'. 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-xwg4-93c6-3h42",
  "modified" : "2021-09-22T17:58:56Z",
  "published" : "2017-10-24T18:33:36Z",
  "aliases" : [ "CVE-2014-6394" ],
  "summary" : "Directory Traversal in send",
  "details" : "Versions 0.8.3 and earlier of `send` are affected by a directory traversal vulnerability. When relying on the root option to restrict file access it may be possible for an application consumer to escape out of the restricted directory and access files in a similarly named directory. \n\nFor example, `static(_dirname + '/public')` would allow access to `_dirname + '/public-restricted'`.\n\n\n## Recommendation\n\nUpdate to version 0.8.4 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "send"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.8.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-6394"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/visionmedia/send/pull/59"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/visionmedia/send/commit/9c6ca9b2c0b880afd3ff91ce0d211213c5fa5f9a"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1146063"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/96727"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-xwg4-93c6-3h42"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/visionmedia/send"
  }, {
    "type" : "WEB",
    "url" : "https://support.apple.com/HT205217"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/32"
  }, {
    "type" : "WEB",
    "url" : "http://lists.apple.com/archives/security-announce/2015/Sep/msg00002.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2014-October/139938.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2014-October/140020.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2014-September/139415.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/62170"
  }, {
    "type" : "WEB",
    "url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21687263"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2014/09/24/1"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2014/09/30/10"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/70100"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T22:04:41Z",
    "nvd_published_at" : null
  }
}