CVE-2018-7166

HighCVSS 7.5/10Last modified Oct 8, 2026

Description

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.

Metrics

CVSS 3.1 7.5/10CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Aug 21, 2018
Last modified
Oct 8, 2026
NVD status
Modified

Related CVEs from 2018

CVE-2018-71677.5Calling Buffer.fill() or Buffer.alloc() with some parameters can lead to a hang which could result in a Denial of Service. In order to addreCVE-2018-71695.3An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespacCVE-2018-71705.3ntpd in ntp 4.2.x before 4.2.8p7 and 4.3.x before 4.3.92 allows authenticated users that know the private symmetric key to create arbitrarilCVE-2018-71717.5Directory traversal vulnerability in Twonky Server 7.0.11 through 8.5 allows remote attackers to share the contents of arbitrary directoriesCVE-2018-71724.9In index.php in WonderCMS before 2.4.1, remote attackers can delete arbitrary files via directory traversal.CVE-2018-71735.5A large loop in JBIG2Stream::readSymbolDictSeg in xpdf 4.00 allows an attacker to cause denial of service via a specific file due to inapproCVE-2018-71745.5An issue was discovered in xpdf 4.00. An infinite loop in XRef::Xref allows an attacker to cause denial of service because loop detection exCVE-2018-71755.5An issue was discovered in xpdf 4.00. A NULL pointer dereference in readCodestream allows an attacker to cause denial of service via a JPX iCVE-2018-71768.8FrontAccounting 2.4.3 suffers from a CSRF flaw, which leads to adding a user account via admin/users.php (aka the "add user" feature of the CVE-2018-71779.8SQL Injection exists in the Saxum Numerology 3.0.4 component for Joomla! via the publicid parameter.CVE-2018-71789.8SQL Injection exists in the Saxum Picker 3.2.10 component for Joomla! via the publicid parameter.CVE-2018-71799.8SQL Injection exists in the SquadManagement 1.0.3 component for Joomla! via the id parameter.
CVE-2018-7166: High severity, CVSS 7.5 | Vulnix