GHSA-57cf-349j-352g: Out-of-bounds Read in npmconf
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
6/12/2019
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
-
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
npmconf | npm | < 2.1.3 | 2.1.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsafe Buffer initialization when processing numeric input in Node.js 4.x. Since npmconf handles configuration serialization, the save
method in its Config class is the most probable location where data gets written to disk. The description explicitly calls out numeric type handling and uninitialized memory exposure, which aligns with deprecated new Buffer(size)
usage. While the exact code changes aren't visible, the pattern matches known Buffer-related vulnerabilities fixed by replacing new Buffer()
with Buffer.alloc()
.