CVE-2025-40905 WWW::OAuth 1.000 and earlier for Perl uses insecure rand() function for cryptographic functions
The Perl WWW::OAuth library uses insecure random number generation for cryptographic operations, potentially allowing attackers to bypass security controls.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-40905?
CVE-2025-40905 is a high-severity vulnerability in DBOOK WWW::OAuth, published on 12 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
WWW::OAuth 1.000 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions.
Weakness: CWE-338
Which versions are affected by CVE-2025-40905?
It affects 1 product.
Products include Dbook Www\.
How do I fix CVE-2025-40905?
Upgrade to a fixed version.
Is CVE-2025-40905 being exploited?
There is no known exploitation of CVE-2025-40905 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2025-40905, GHSA-869w-qxf5-5q39, UBUNTU-CVE-2025-40905.