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

Not scored Published

The random_compat library uses an insecure CSPRNG, potentially generating predictable random numbers that compromise security.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-3fmq-x9q6-wm39?

GHSA-3fmq-x9q6-wm39 is a vulnerability in paragonie/random_compat, published on 17 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Which versions are affected by GHSA-3fmq-x9q6-wm39?

2 open source packages ship an affected version, including paragonie/random_compat.

PackageAffectedFixed in
paragonie/random_compat PackagistAll versions2.0
paragonie/random_compat PackagistAll versions2.0

How do I fix GHSA-3fmq-x9q6-wm39?

Upgrade paragonie/random_compat to 2.0 or later.

Is GHSA-3fmq-x9q6-wm39 being exploited?

There is no known exploitation of GHSA-3fmq-x9q6-wm39 in the wild and no public exploit code.

Sources

Is GHSA-3fmq-x9q6-wm39 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free