Advisory

DEBIAN-CVE-2018-7159

Also known as: CVE-2018-7159

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Dates

Published
2018-05-17 14:29 UTC
Modified
2026-10-09 09:47 UTC

Affected packages and fixes

nodejs

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 8.11.1~dfsg-2 (ecosystem)

Fixed versions

8.11.1~dfsg-2

Fix

  • Fixed version 8.11.1~dfsg-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

nodejs

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 8.11.1~dfsg-2 (ecosystem)

Fixed versions

8.11.1~dfsg-2

Fix

  • Fixed version 8.11.1~dfsg-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

nodejs

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 8.11.1~dfsg-2 (ecosystem)

Fixed versions

8.11.1~dfsg-2

Fix

  • Fixed version 8.11.1~dfsg-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences