CVE-2018-7159
Summary
| CVE | CVE-2018-7159 |
|---|---|
| State | PUBLISHED |
| Assigner | nodejs |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2018-05-17 14:29:00 UTC |
| Updated | 2026-10-08 22:16:47 UTC |
| Description | The HTTP parser in all current versions of Node.js ignores spaces in the `Content-Length` header, allowing input such as `Content-Length: 1 2` to be interpreted as having a value of `12`. The HTTP specification does not allow for spaces in the `Content-Length` value and the Node.js HTTP parser has been brought into line on this particular difference. The security risk of this flaw to Node.js users is considered to be VERY LOW as it is difficult, and may be impossible, to craft an attack that makes use of this flaw in a way that could not already be achieved by supplying an incorrect value for `Content-Length`. Vulnerabilities may exist in user-code that make incorrect assumptions about the potential accuracy of this value compared to the actual length of the data supplied. Node.js users crafting lower-level HTTP utilities are advised to re-check the length of any input supplied after parsing is complete. |
Risk And Classification
Primary CVSS: v3.1 5.3 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Problem Types: CWE-115 | CWE-20 | CWE-115 CWE-115: Misinterpretation of Input
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| 2.0 | [email protected] | Primary | 5 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
LowAuthentication
NoneConfidentiality
NoneIntegrity
PartialAvailability
NoneAV:N/AC:L/Au:N/C:N/I:P/A:N
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | The Node.js Project | Node.js | affected 4.x | Not specified |
| CNA | The Node.js Project | Node.js | affected 6.x | Not specified |
| CNA | The Node.js Project | Node.js | affected 8.x | Not specified |
| CNA | The Node.js Project | Node.js | affected 9.x | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| March 2018 Security Releases | Node.js | af854a3a-2127-422b-91ae-364da2661108 | nodejs.org | Vendor Advisory |
| myF5 | af854a3a-2127-422b-91ae-364da2661108 | support.f5.com | |
| Red Hat Customer Portal | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| CONFIRM:https://support.f5.com/csp/article/K27228191?utm_source=f5support&utm_medium=RSS | MITRE | support.f5.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.