7.5
CWE
908 226
Advisory Published
CVE Published
CVE Published
Updated

CVE-2018-7166

First published: Sun Aug 12 2018(Updated: )

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.

Credit: cve-request@iojs.org

Affected SoftwareAffected VersionHow to fix
redhat/nodejs<10.9.0
10.9.0
Langgenius Dify Node.js>=10.0.0<10.9.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2018-7166?

    CVE-2018-7166 is considered a critical vulnerability due to the potential exposure of sensitive data through uninitialized memory.

  • How do I fix CVE-2018-7166?

    To fix CVE-2018-7166, upgrade Node.js to version 10.9.0 or later.

  • Which versions of Node.js are affected by CVE-2018-7166?

    CVE-2018-7166 affects all versions of Node.js prior to 10.9.0.

  • What vulnerability type is CVE-2018-7166?

    CVE-2018-7166 is categorized as an argument processing flaw in the Node.js Buffer module.

  • Can CVE-2018-7166 lead to data exposure?

    Yes, CVE-2018-7166 can lead to data exposure due to the returning of uninitialized memory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203