CVE-2018-7560: AWS Lambda parser is vulnerable to Regular Expression Denial of Service
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55713%
CWE
Published
3/5/2018
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
aws-lambda-multipart-parser | npm | < 0.1.2 | 0.1.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the line .split(new RegExp(boundary))
in the parse function. The boundary value is extracted directly from the HTTP request headers without sanitization, and converting it to a RegExp object enables ReDoS attacks via malicious boundary patterns. The patch replaces new RegExp(boundary)
with a direct string split (split(boundary)
), confirming this was the vulnerable code path. The parse function is the entry point for processing untrusted input and directly handles the dangerous regex construction.