CVE-2017-15897
Node.js had a bug in versions 8.X and 9.X which caused buffers to not be initialized when the encoding for the fill value did not match the encoding specified. For example, 'Buffer.alloc(0x100, "This is not correctly encoded", "hex");' The buffer implementation was updated such that the buffer will be initialized to all zeros in these cases.
What to do
Fixed builds are available from Alpine: see the table below for the fixed version per release.
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 16.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Red Hat Enterprise Linux 8 | nodejs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | nodejs-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | nodejs-docs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | nodejs-libs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | nodejs-packaging | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | npm | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | v8-12.4-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | v8-13.6-devel | Will not fix Will not fix | ||
| Alpine Linux 3.24 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.24 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.23 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.23 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.22 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.22 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.21 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.21 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.20 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.20 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.19 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.19 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.18 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.18 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.17 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.17 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.16 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.16 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.15 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.15 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.14 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.14 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.13 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.13 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.12 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.12 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.11 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.11 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.10 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.10 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.9 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.9 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.8 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.8 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.7 | nodejs | Fixed | 8.9.3-r0 | ALPINE-CVE-2017-15897 |
| Alpine Linux 3.7 | nodejs-current | Fixed | 9.2.1-r0 | ALPINE-CVE-2017-15897 |
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: 8.0 and higher, 9.0 and higher
References
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.