CVE-2025-1805 Details
Description
Crypt::Salt for Perl version 0.01 uses insecure rand() function when generating salts for cryptographic purposes.
A vulnerability exists in Crypt::Salt for Perl, specifically in version 0.01, due to the use of the insecure rand() function for generating salts intended for cryptographic use. The rand() function is not cryptographically secure, as it can be easily predicted and is seeded by only 32 bits. This flaw allows for the potential manipulation or prediction of salts used in password hashing or other security-sensitive applications.
Users are advised to update to a version of Crypt::Salt that does not use the insecure rand() function. Alternatively, when generating salts, consider using a secure random number generator from the recommended Perl modules such as Crypt::URandom, Crypt::Random, or Math::Random::Secure.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 2, 2025CISA-ADP
Assessed Apr 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://metacpan.org/release/HACHI/Crypt-Salt-0.01/source/lib/Crypt/Salt.pm#L76 | CPANSec | Source CodeVendor |
| https://perldoc.perl.org/functions/rand | CPANSec | Not Applicable |
| https://security.metacpan.org/docs/guides/random-data-for-security.html | CPANSec |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| HACHI Crypt::Salt | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 3, 2025 | CVE Modified | CISA-ADP |
| Apr 2, 2025 | New CVE Received | CPANSec |
Volerion