Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. pem
  4. ›
  5. GMS-2019-45

GMS-2019-45: Sensitive Data Exposure in pem

June 4, 2019 (updated August 4, 2021)

Versions of pem 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 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. Update to or later.

References

  • github.com/Dexus/pem/commit/bed1190e4a08692ac903ae6043489f1f76bc67eb
  • github.com/Dexus/pem/pull/217
  • github.com/advisories/GHSA-pgcr-7wm4-mcv6
  • snyk.io/vuln/SNYK-JS-PEM-173687
  • www.npmjs.com/advisories/723

Code Behaviors & Features

Detect and mitigate GMS-2019-45 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.13.2

Fixed versions

  • 1.13.2

Solution

Upgrade to version 1.13.2 or above.

Source file

npm/pem/GMS-2019-45.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:06 +0000.