Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. paragonie/random_compat
  4. ›
  5. GHSA-3fmq-x9q6-wm39

GHSA-3fmq-x9q6-wm39: random_compat Uses insecure CSPRNG

May 17, 2024

random_compat versions prior to 2.0 are affected by a security vulnerability related to the insecure usage of Cryptographically Secure Pseudo-Random Number Generators (CSPRNG). The affected versions use openssl_random_pseudo_bytes(), which may result in insufficient entropy and compromise the security of generated random numbers.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/paragonie/random_compat/2016-03-16.yaml
  • github.com/advisories/GHSA-3fmq-x9q6-wm39
  • github.com/paragonie/random_compat
  • github.com/paragonie/random_compat/issues/96

Code Behaviors & Features

Detect and mitigate GHSA-3fmq-x9q6-wm39 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.0

Fixed versions

  • 2.0

Solution

Upgrade to version 2.0 or above.

Weakness

  • CWE-331: Insufficient Entropy

Source file

packagist/paragonie/random_compat/GHSA-3fmq-x9q6-wm39.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:55 +0000.