CVE-2018-7159

Name
CVE-2018-7159
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
Vendor Advisory https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/
Third Party Advisory https://access.redhat.com/errata/RHSA-2019:2258
Third Party Advisory https://support.f5.com/csp/article/K27228191?utm_source=f5support&utm_medium=RSS

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* nodejs >= 4.0.0 <= 4.1.2
cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* nodejs >= 4.2.0 < 4.9.0
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* nodejs >= 6.0.0 <= 6.8.1
cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* nodejs >= 6.9.0 < 6.14.0
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* nodejs >= 8.0.0 <= 8.8.1
cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* nodejs >= 8.9.0 < 8.11.0
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* nodejs >= 9.0.0 < 9.10.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status