Advisory

GHSA-pgcr-7wm4-mcv6

Also known as: None

Summary

Sensitive Data Exposure in pem

Details

Versions of pem before 1.13.2 expose sensitive data when the readPkcs12 is used.

The 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.

Recommendation

Update to version 1.13.2 or later.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2019-06-04 15:42 UTC
Modified
2021-08-04 21:28 UTC

Affected packages and fixes

pem

npm · All systems

Affected

  • introduced 0, fixed 1.13.2 (semver)

Fixed versions

1.13.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences