CVE-2014-6394: Send Path Traversal Vulnerability
LOWCVE-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
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.
npm install send@0.8.4
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
CVE-2014-6394 Affected Send Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
send
|
npm |
< 0.8.4
|
0.8.4
|
References
Frequently Asked Questions
What is CVE-2014-6394?
Which Send versions are affected?
What version fixes CVE-2014-6394?
Is send affected?
What CWE is associated with CVE-2014-6394?
How can I check npm dependencies for CVE-2014-6394?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}