5.3med

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…

Published 8 y ago · modified 29 d ago · JSON

CVSS
5.3
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
3.5%
percentile 89%
Public exploits
0
none known

Summary

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.

CISA SSVC assessment

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
29 d ago

Exploit prediction (EPSS)

3.54% probability of exploitation in the next 30 days, higher than 89% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.15.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD2.05.0AV:N/AC:L/Au:N/C:N/I:P/A:N

Affected products

  • The Node.js Project Node.js

Classification

Weakness
  • CWE-115 Misinterpretation of Input
  • CWE-20 Improper Input Validation
Technology feeds
Node.js (RSS, critical only)

References

  • nodejs.org /en/blog/vulnerability/march-2018-security-releases/ · x_refsource_CONFIRM, x_transferred
  • access.redhat.com /errata/RHSA-2019:2258 · vendor-advisory, x_refsource_REDHAT, x_transferred
  • support.f5.com /csp/article/K27228191?utm_source=f5support&amp%3Butm_medium=RSS · x_refsource_CONFIRM, x_transferred

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.