Smolder
CVE-2024-58041
CRITICAL
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Lifecycle Timeline
2DescriptionCVE.org
Smolder versions through 1.51 for Perl uses insecure rand() function for cryptographic functions.
Smolder 1.51 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions.
Specifically Smolder::DB::Developer uses the Data::Random library which specifically states that it is "Useful mostly for test programs". Data::Random uses the rand() function.
AnalysisAI
Insecure random number generation in Smolder 1.51 Perl testing framework. Uses rand() for cryptographic operations instead of a CSPRNG, enabling prediction of security tokens.
Technical ContextAI
CWE-338 use of cryptographically weak PRNG. rand() output is predictable — any tokens, session IDs, or nonces generated with it can be predicted.
RemediationAI
Replace rand() with a CSPRNG (e.g., Crypt::URandom).
Same technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today