pem is a package to create private keys and certificates with node.js.
Affected versions of this package are vulnerable to Information Exposure.
The package exposes sensitive data when the
readPkcs12 is used.
readPkcs12 function reads the certificate and key data from a pkcs12 file using the encryption password. As part of this process it creates a globally readable file with a filename of 20 random 0-f characters in the temporary directory containing the password which is then read by OpenSSL. The file containing the password is never cleaned up after it is used giving access to the pkcs12 password to any other users with access to read files from the system.
pem to version 1.13.2 or higher.
Do your applications use this vulnerable package?
- The UK's National Cyber Security Centre (NCSC)
- Snyk ID
- 06 Nov, 2018
- 13 Feb, 2019