PT-2017-14275
CVE-2017-15897
·
Published
2017-12-11
·
Updated
2026-10-21
Description by
CVSS 2.0
4.3
MediumMetricsAV:N/AC:M/Au:N/C:P/I:N/A:N
Name of the Vulnerable Software and Affected Versions
Node.js versions 8.X through 9.X
Description
The issue arises when the encoding for the fill value does not match the encoding specified, causing buffers to not be initialized correctly. For example, 'Buffer.alloc(0x100, "This is not correctly encoded", "hex")' would be problematic. The buffer implementation was updated to initialize the buffer to all zeros in such cases.
Recommendations
For Node.js versions 8.X through 9.X, update the buffer implementation to initialize buffers to all zeros when the encoding for the fill value does not match the encoding specified. As a temporary workaround, consider initializing buffers manually to all zeros in cases where encoding mismatches occur.
Found an issue in the description? Have something to add? Feel free to write us 👾