CVE-2018-7159
mediumpriority · track · 22EPSS 0.035 · 89 %ileDEEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (23)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-0517Red Hat Enterprise Linux: Mehrere SchwachstellenDeutsch2019-08-06csaf · cert_bundDE
Ein entfernter, anonymer oder authentisierter Angreifer kann mehrere Schwachstellen in Red Hat Enterprise Linux ausnutzen, um dadurch die Integrität, Vertraulichkeit und Verfügbarkeit zu gefährden.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- https://access.redhat.com/errata/RHSA-2019:2258cnnvd
- https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/cnnvd
- https://support.f5.com/csp/article/K27228191?utm_source=f5support&utm_medium=RSScnnvd
- https://www.auscert.org.au/bulletins/ESB-2019.2941/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2019.4645/cnnvd
- https://www.suse.com/support/update/announcement/2019/suse-su-201914246-1.htmlcnnvd
- https://access.redhat.com/errata/RHSA-2019:2258enisa_euvd
- https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan