CVE-2024-58041 Details
Description
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.
A vulnerability exists in Smolder versions through 1.51 for Perl, where the rand() function is used as the default source of entropy for cryptographic functions. This is problematic because the rand() function is not cryptographically secure. The issue arises in the Smolder::DB::Developer module, which relies on the Data::Random library. Data::Random explicitly states that it is 'Useful mostly for test programs', indicating its unsuitability for production use.
Users are advised to update to a version of Smolder that addresses this vulnerability. If an immediate update is not possible, consider manually replacing the use of Data::Random with a more secure alternative, such as Crypt::URandom or Crypt::OpenSSL::Random, which are available on CPAN.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 24, 2026References 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/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537 | CPANSec | Issue Tracking |
| https://metacpan.org/release/WONKO/Smolder-1.51/source/lib/Smolder/DB/Developer.pm#L221 | CPANSec | Issue Tracking |
| https://metacpan.org/release/WONKO/Smolder-1.51/source/lib/Smolder/DB/Developer.pm#L5 | CPANSec | Issue Tracking |
| https://perldoc.perl.org/functions/rand | CPANSec | Third Party Advisory |
| https://security.metacpan.org/docs/guides/random-data-for-security.html | CPANSec | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| wonko smolder | <= 1.51 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 4, 2026 | Initial Analysis | [email protected] |
| Feb 24, 2026 | CVE Modified | CISA-ADP |
| Feb 24, 2026 | New CVE Received | CPANSec |