CVE-2014-7191: Qs Denial-of-Service Memory Exhaustion Vulnerability
HIGHCVE-2014-7191 is a HIGH denial-of-service memory exhaustion vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Qs libraries in the npm ecosystem. The issue involves denial-of-service memory exhaustion in qs. Remediation is available by upgrading affected packages to version 1.0.0.
CVE-2014-7191 at a Glance
How to Fix CVE-2014-7191
To remediate this vulnerability, upgrade all affected Qs 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 qs@1.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls qs
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2014-7191, inspect your project dependencies using npm:
npm ls qs
Analyze the terminal output to locate any version of Qs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0), your application is affected.
Note: The npm ls qs 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Qs, 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-7191 Affected Qs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
qs
|
npm |
< 1.0.0
|
1.0.0
|
References
Frequently Asked Questions
What is CVE-2014-7191?
Which Qs versions are affected?
What version fixes CVE-2014-7191?
Is qs affected?
What CWE is associated with CVE-2014-7191?
How can I check npm dependencies for CVE-2014-7191?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jjv7-qpx3-h62q",
"modified" : "2021-09-14T19:46:47Z",
"published" : "2017-10-24T18:33:36Z",
"aliases" : [ "CVE-2014-7191" ],
"summary" : "Denial-of-Service Memory Exhaustion in qs",
"details" : "Versions prior to 1.0 of `qs` are affected by a denial of service condition. This condition is triggered by parsing a crafted string that deserializes into very large sparse arrays, resulting in the process running out of memory and eventually crashing.\n\n\n## Recommendation\n\nUpdate to version 1.0.0 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "qs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-7191"
}, {
"type" : "WEB",
"url" : "https://github.com/visionmedia/node-querystring/issues/104"
}, {
"type" : "WEB",
"url" : "https://github.com/raymondfeng/node-querystring/commit/43a604b7847e56bba49d0ce3e222fe89569354d8"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2016:1380"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/96729"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-jjv7-qpx3-h62q"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/visionmedia/node-querystring"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/29"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/60026"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/62170"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21685987"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21687263"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21687928"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:43:41Z",
"nvd_published_at" : null
}
}