{"id":"CVE-2024-58041","published":"2026-02-23T23:54:23Z","modified":"2026-02-24T16:41:35Z","title":"Smolder versions through 1.51 for Perl uses insecure rand() function for cryptographic functions","vendor":"WONKO","product":"Smolder","tier":"tail","description":{"text":"Smolder versions through 1.51 for Perl uses insecure rand() function for cryptographic functions.\n\nSmolder 1.51 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions.\n\nSpecifically 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00486,"percentile":0.42765,"provenance":"source"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"references":[{"url":"https://perldoc.perl.org/functions/rand","tags":[]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":[]},{"url":"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537","tags":[]},{"url":"https://metacpan.org/release/WONKO/Smolder-1.51/source/lib/Smolder/DB/Developer.pm#L5","tags":[]},{"url":"https://metacpan.org/release/WONKO/Smolder-1.51/source/lib/Smolder/DB/Developer.pm#L221","tags":[]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":8.55},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"wonko","affectedVersions":[{"vendor":"WONKO","product":"Smolder","versions":["<= 1.51"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-24T16:41:10.683807Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-55433","exploited":false,"provenance":"source"}}