# CVE-2024-58041: Smolder versions through 1.51 for Perl uses insecure rand() function for cryptographic functions

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-02-23T23:54:23.396Z
- Modified: 2026-06-17T08:14:29.660Z
- Weaknesses: CWE-338
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- Smolder: up to 1.51
- wonko smolder: up to 1.51

## References

- <https://perldoc.perl.org/functions/rand> (third-party-advisory)
- <https://security.metacpan.org/docs/guides/random-data-for-security.html> (third-party-advisory)
- <https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537> (issue-tracking)
- <https://metacpan.org/release/WONKO/Smolder-1.51/source/lib/Smolder/DB/Developer.pm#L5> (issue-tracking)
- <https://metacpan.org/release/WONKO/Smolder-1.51/source/lib/Smolder/DB/Developer.pm#L221> (issue-tracking)

## Sources

- CVE List: [CVE-2024-58041](https://www.cve.org/CVERecord?id=CVE-2024-58041), CVE Terms of Use, modified 2026-02-24
- NVD: [CVE-2024-58041](https://nvd.nist.gov/vuln/detail/CVE-2024-58041), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-58041 · Whole record: https://cve.day/CVE-2024-58041.json · Rebuilt by cve.day 2026-11-25T22:58:52.978Z
