Crypt::Salt for Perl Insecure Random Number Generation Vulnerability

Vulnerability

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.

Impact

The vulnerability could lead to predictable salts in cryptographic functions, undermining the security of password hashing and other cryptographic operations that rely on random salts.

Remediation

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.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.0
exploitability
7.0
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.