Description (CNA)
A weak randomness in WebCrypto keygen vulnerability exists in Node.js 18 due to a change with EntropySource() in SecretKeyGenTraits::DoKeyGen() in src/crypto/crypto_keygen.cc. There are two problems with this: 1) It does not check the return value, it assumes EntropySource() always succeeds, but it can (and sometimes will) fail. 2) The random data returned byEntropySource() may not be cryptographically strong and therefore not suitable as keying material.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| NodeJS / Node | affected 4.0 before 4.*; affected 5.0 before 5.*; affected 6.0 before 6.*; affected 7.0 before 7.*; affected 8.0 before 8.*; affected 9.0 before 9.*; affected 10.0 before 10.*; affected 11.0 before 11.*; affected 12.0 before 12.*; affected 13.0 before 13.*; affected 15.0 before 15.*; affected 17.0 before 17.*; affected 18.0 before 18.9.1 |
CWE
CWE-338
References
- https://hackerone.com/reports/1690000
- https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf
- https://security.netapp.com/advisory/ntap-20230113-0002/
- https://www.debian.org/security/2023/dsa-5326
ADP enrichment
No English description supplied.
No English description supplied.
No references supplied.