Improper input validation in Node.js - CVE-2018-7160

 

Improper input validation in Node.js - CVE-2018-7160

Published: May 10, 2018


Vulnerability identifier: #VU12576
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-7160
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists due to improper validation of the Host header, leaving the inspector vulnerable to a DNS rebind attack and bypass same-origin policy. A remote attacker can trick the victim into opening a specially crafted website and execute arbitrary code.

Successful exploitation of the vulnerability may result in system compromise.

Affected software

Node.js
Fedora
openEuler
nodejs-current (Alpine package)
libuv
v8-devel
nodejs
npm
nodejs-docs
nodejs-devel
nodejs-debuginfo
nodejs-full-i18n
nodejs-debugsource
nodejs-libs
SINEC INS

How to mitigate CVE-2018-7160

Install update from vendor's website.

Node.js - addressed in versions 14.20.1, 16.17.1, 18.9.1
nodejs-current (Alpine package) - update to 9.10.1-r0
SINEC INS - update to 1.0.1.1
libuv - addressed in versions 1.19.2-1.el7, 1.19.2-1.fc27
v8-devel - update to 6.8.275.32-1.10.21.0.6
nodejs - addressed in versions 6.14.0-1.el7, 6.14.0-1.fc26, 6-20180328185917.c2c572ec, 8.11.0-1.fc27, 8.11.0-1.fc28, 8-20180328183715.c2c572ec, 9-20180405175619.c7b355af
npm - update to 6.14.4-1.10.21.0.6
nodejs-docs - update to 10.21.0-6
nodejs-devel - update to 10.21.0-6
nodejs-debuginfo - update to 10.21.0-6
nodejs-full-i18n - update to 10.21.0-6
nodejs-debugsource - update to 10.21.0-6
nodejs-libs - update to 10.21.0-6
nodejs - update to 10.21.0-6

External References

Related Security Bulletins