CVE-2018-7560: Aws lambda multipart parser Denial of Service Vulnerability
HIGHCVE-2018-7560 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Aws lambda multipart parser libraries in the npm ecosystem. The issue involves aws lambda parser is vulnerable to regular expression denial of service. Remediation is available by upgrading affected packages to version 0.1.2.
CVE-2018-7560 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2018-7560
To remediate this vulnerability, upgrade all affected Aws lambda multipart parser 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 aws-lambda-multipart-parser@0.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls aws-lambda-multipart-parser
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2018-7560, inspect your project dependencies using npm:
npm ls aws-lambda-multipart-parser
Analyze the terminal output to locate any version of Aws lambda multipart parser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.2), your application is affected.
Note: The npm ls aws-lambda-multipart-parser 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Aws lambda multipart parser, 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-2018-7560 Affected Aws lambda multipart parser Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aws-lambda-multipart-parser
|
npm |
< 0.1.2
|
0.1.2
|
References
Frequently Asked Questions
What is CVE-2018-7560?
Which Aws lambda multipart parser versions are affected?
What version fixes CVE-2018-7560?
Is aws-lambda-multipart-parser affected?
What is the CVSS score of CVE-2018-7560?
What CWE is associated with CVE-2018-7560?
How can I check npm dependencies for CVE-2018-7560?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6jqp-j69q-pm62",
"modified" : "2022-04-25T22:28:16Z",
"published" : "2018-03-05T19:16:56Z",
"aliases" : [ "CVE-2018-7560" ],
"summary" : "AWS Lambda parser is vulnerable to Regular Expression Denial of Service",
"details" : "index.js in the aws-lambda-multipart-parser NPM package before 0.1.2 has a Regular Expression Denial of Service (ReDoS) issue via a crafted multipart/form-data boundary string.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "aws-lambda-multipart-parser"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-7560"
}, {
"type" : "WEB",
"url" : "https://github.com/myshenin/aws-lambda-multipart-parser/commit/56ccb03af4dddebc2b2defb348b6558783d5757e"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-6jqp-j69q-pm62"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/myshenin/aws-lambda-multipart-parser"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:19:35Z",
"nvd_published_at" : null
}
}