CVE-2018-7159

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*
cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:*
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*
cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:*
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*
cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:*
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*

History

21 Nov 2024, 04:11

Type Values Removed Values Added
References () https://access.redhat.com/errata/RHSA-2019:2258 - Third Party Advisory () https://access.redhat.com/errata/RHSA-2019:2258 - Third Party Advisory
References () https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/ - Vendor Advisory () https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/ - Vendor Advisory
References () https://support.f5.com/csp/article/K27228191?utm_source=f5support&amp%3Butm_medium=RSS - () https://support.f5.com/csp/article/K27228191?utm_source=f5support&amp%3Butm_medium=RSS -

07 Nov 2023, 03:00

Type Values Removed Values Added
References
  • {'url': 'https://support.f5.com/csp/article/K27228191?utm_source=f5support&utm_medium=RSS', 'name': 'https://support.f5.com/csp/article/K27228191?utm_source=f5support&utm_medium=RSS', 'tags': ['Third Party Advisory'], 'refsource': 'CONFIRM'}
  • () https://support.f5.com/csp/article/K27228191?utm_source=f5support&amp%3Butm_medium=RSS -

Information

Published : 2018-05-17 14:29

Updated : 2024-11-21 04:11


NVD link : CVE-2018-7159

Mitre link : CVE-2018-7159

CVE.ORG link : CVE-2018-7159


JSON object : View

Products Affected

nodejs

  • node.js
CWE
CWE-115

Misinterpretation of Input

CWE-20

Improper Input Validation