CVE-2018-7160
The Node.js inspector, in 6.x and later is vulnerable to a DNS rebinding attack which could be exploited to perform remote code execution. An attack is possible from malicious websites open in a web browser on the same computer, or another computer with network access to the computer running the Node.js process. A malicious website could use a DNS rebinding attack to trick the web browser to bypass same-origin-policy checks and to allow HTTP connections to localhost or to hosts on the local network. If a Node.js process with the debug port active is running on localhost or on a host on the local network, the malicious website could connect to it as a debugger, and get full code execution access.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | nodejs | Fix pending | 8.10.0~dfsg-2ubuntu0.4+esm1 (Ubuntu Pro) | UBUNTU-CVE-2018-7160 |
| Ubuntu 16.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Debian 14 | nodejs | Fixed | 8.11.1~dfsg-2 | DEBIAN-CVE-2018-7160 |
| Debian 13 | nodejs | Fixed | 8.11.1~dfsg-2 | DEBIAN-CVE-2018-7160 |
| Debian 12 | nodejs | Fixed | 8.11.1~dfsg-2 | DEBIAN-CVE-2018-7160 |
| Red Hat Enterprise Linux 8 | nodejs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-packaging | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Not affected | ||
| Red Hat Enterprise Linux 8 | npm | Not affected | ||
| Red Hat Enterprise Linux 8 | v8-12.4-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | v8-13.6-devel | Not affected | ||
| Alpine Linux 3.24 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.24 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.23 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.23 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.22 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.22 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.21 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.21 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.20 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.20 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.19 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.19 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.18 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.18 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.17 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.17 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.16 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.16 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.15 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.15 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.14 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.14 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.13 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.13 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.12 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.12 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.11 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.11 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.10 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.10 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.9 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.9 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.8 | nodejs | Fixed | 8.11.0-r0 | ALPINE-CVE-2018-7160 |
| Alpine Linux 3.8 | nodejs-current | Fixed | 9.10.0-r0 | ALPINE-CVE-2018-7160 |
What the vendor says
As published in the CVE record by nodejs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- The Node.js Project Node.js: affected: ^6.0.0 || ^8.0.0 || ^9.0.0
References
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/
- https://support.f5.com/csp/article/K63025104?utm_source=f5support&%3Butm_medium=RSS
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.