CVE-2024-57868 Web::API 2.8 and earlier for Perl uses insecure rand() function for cryptographic functions
MediumCVSS 5.5
EPSS 0.31%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
Web::API 2.8 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions.
Specifically Web::API uses the Data::Random library which specifically states that it is "Useful mostly for test programs". Data::Random uses the rand() function.
Upgrade path
8 packages: 1 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libweb-api-perl(Debian 12) | = 2.7-2; = 2.7-3; = 2.8-1; All versions | No fix listed | No fix yet |
| debian/libweb-api-perl(Debian 13) | = 2.8-1; All versions | No fix listed | No fix yet |
| debian/libweb-api-perl(Debian 14) | = 2.8-1; All versions | No fix listed | No fix yet |
| ubuntu/libweb-api-perl(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libweb-api-perl(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libweb-api-perl(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libweb-api-perl(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| LEV Web::API | <= 2.8 | after 2.8 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libweb-api-perl(Debian:12) | All versions | No fix listed |
| debian/libweb-api-perl(Debian:12) | = 2.7-2 | No fix listed |
| debian/libweb-api-perl(Debian:12) | = 2.7-3 | No fix listed |
| debian/libweb-api-perl(Debian:12) | = 2.8-1 | No fix listed |
| debian/libweb-api-perl(Debian:13) | All versions | No fix listed |
| debian/libweb-api-perl(Debian:13) | = 2.8-1 | No fix listed |
| debian/libweb-api-perl(Debian:14) | All versions | No fix listed |
| debian/libweb-api-perl(Debian:14) | = 2.8-1 | No fix listed |
| ubuntu/libweb-api-perl(Ubuntu:22.04) | All versions | No fix listed |
| LEV Web::API | <= 2.8 | No fix listed |
| ubuntu/libweb-api-perl(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libweb-api-perl(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libweb-api-perl(Ubuntu:26.10) | All versions | No fix listed |
References
- Debian Security Tracker CVE-2024-57868 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- perldoc.perl.org product
- security.metacpan.org product
- metacpan.org product
- metacpan.org product
- bugs.debian.org issue-tracking