cve.bz

CVE-2018-7166 nodejs node.js: Use of Uninitialized Resource

7.5 highEPSS 3.3%

High (7.5) in nodejs node.js. EPSS 3.3% estimated probability of exploitation activity in the next 30 days.

On this page
In all versions of Node.js 10 prior to 10.9.0, an argument processing flaw can cause `Buffer.alloc()` to return uninitialized memory. This method is intended to be safe and only return initialized, or cleared, memory. The third argument specifying `encoding` can be passed as a number, this is misinterpreted by `Buffer's` internal "fill" method as the `start` to a fill operation. This flaw may be abused where `Buffer.alloc()` arguments are derived from user input to return uncleared memory blocks that may contain sensitive information.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
3.3% (unchanged from 3.3% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-908 Use of Uninitialized Resource
CWE-226 Sensitive Information in Resource Not Removed Before Reuse
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-7166 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-7166?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-7166?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-7166 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2018-7166

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2018-7166](https://cve.bz/cve/badge/CVE-2018-7166.svg)](https://cve.bz/cve/CVE-2018-7166)

HTML:

<a href="https://cve.bz/cve/CVE-2018-7166"><img src="https://cve.bz/cve/badge/CVE-2018-7166.svg" alt="CVE-2018-7166"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nodejs:node.jsfrom 10.0.0 before 10.9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatopenshift_application_runtimes:1.0::el7npm1:6.2.0-1.10.9.0.1.el7RHSA-2018:2553
Red Hatopenshift_application_runtimes:1.0::el7rhoar-nodejs, rhoar-nodejs-docs, rhoar-nodejs-debuginfo1:10.9.0-1.el7RHSA-2018:2553
Red Hatrhel_software_collections:3::el7rh-nodejs10-nodejs, rh-nodejs10-nodejs-docs, rh-nodejs10-nodejs-devel and 1 more0:10.10.0-3.el7RHBA-2019:0772
Red Hatrhel_software_collections:3::el7rh-nodejs10-npm0:6.4.1-10.10.0.3.el7RHBA-2019:0772

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat OpenShift Application Runtimes Node.js 10rhoar-nodejs-1:10.9.0-1.el7Fixed 2018-08-22RHSA-2018:2553
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs10-nodejs-0:10.10.0-3.el7Fixed 2019-04-17RHBA-2019:0772
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-nodejs10-nodejs-0:10.10.0-3.el7Fixed 2019-04-17RHBA-2019:0772
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-nodejs10-nodejs-0:10.10.0-3.el7Fixed 2019-04-17RHBA-2019:0772
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs10-nodejs-0:10.10.0-3.el7Fixed 2019-04-17RHBA-2019:0772
Red Hat Enterprise Linux 8nodejsNot affected
Red Hat OpenShift Application RuntimesnodejsNot affected
Red Hat OpenShift Container Platform 3.10nodejsNot affected
Red Hat OpenShift Container Platform 3.11nodejsNot affected
Red Hat OpenShift Container Platform 3.2nodejsNot affected
Red Hat OpenShift Container Platform 3.3nodejsNot affected
Red Hat OpenShift Container Platform 3.4nodejsNot affected
Red Hat OpenShift Container Platform 3.5nodejsNot affected
Red Hat OpenShift Container Platform 3.6nodejsNot affected
Red Hat OpenShift Container Platform 3.7nodejsNot affected
Red Hat OpenShift Container Platform 3.9nodejsNot affected
Red Hat OpenShift Enterprise 3.1nodejsNot affected
Red Hat Software Collectionsrh-nodejs4-nodejsNot affected
Red Hat Software Collectionsrh-nodejs6-nodejsNot affected
Red Hat Software Collectionsrh-nodejs8-nodejsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-7166.

Attack patterns (CAPEC)

  • CAPEC-37 Retrieve Embedded Sensitive Data Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON