CVE-2018-7166
nodejs: Unintentional exposure of uninitialized memory
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
En todas las versiones de Node.js 10 anteriores a la 10.9.0, un fallo en el procesamiento de argumentos puede provocar que "Buffer.alloc()" devuelva memoria no inicializada. Este método está diseñado para ser seguro y solo devuelve la memoria inicializada o borrada. El tercer argumento que especifica "encoding" puede ser pasado como un número. Esto es malinterpretado por el método interno "fill" del búfer como el "comienzo" de una operación de llenado (fill). Este defecto puede ser explotado cuando los argumentos "Buffer.alloc()" se derivan de la entrada del usuario para devolver bloques de memoria no borrados que pueden contener información sensible.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2018-02-15 CVE Reserved
- 2018-08-21 CVE Published
- 2023-03-07 EPSS Updated
- 2024-09-17 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-226: Sensitive Information in Resource Not Removed Before Reuse
- CWE-908: Use of Uninitialized Resource
CAPEC
References (4)
URL | Tag | Source |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://access.redhat.com/errata/RHSA-2018:2553 | 2020-09-22 | |
https://nodejs.org/en/blog/vulnerability/august-2018-security-releases | 2020-09-22 | |
https://access.redhat.com/security/cve/CVE-2018-7166 | 2018-08-22 | |
https://bugzilla.redhat.com/show_bug.cgi?id=1620215 | 2018-08-22 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Nodejs Search vendor "Nodejs" | Node.js Search vendor "Nodejs" for product "Node.js" | >= 10.0.0 < 10.9.0 Search vendor "Nodejs" for product "Node.js" and version " >= 10.0.0 < 10.9.0" | - |
Affected
|