ubuntu-cve-2024-57868
Vulnerability from osv_ubuntu
Published
2025-04-05 16:15
Modified
2026-05-20 15:15
Summary
Details
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.
Severity
5.5 (Medium)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.2.3-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl@2.2.3-1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.2.3-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.6-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl@2.6-1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.1-1",
"2.5-1",
"2.6-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.7-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl@2.7-1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.7-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl@2.7-3?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7-2",
"2.7-3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.8-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl@2.8-1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.8-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.8-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl@2.8-1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.8-1"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2024-57868",
"modified": "2026-05-20T15:15:24Z",
"published": "2025-04-05T16:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2024-57868"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2024-57868"
},
{
"type": "REPORT",
"url": "https://lists.security.metacpan.org/cve-announce/msg/28503730/"
},
{
"type": "REPORT",
"url": "https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L20"
},
{
"type": "REPORT",
"url": "https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L348"
},
{
"type": "REPORT",
"url": "https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537"
},
{
"type": "REPORT",
"url": "https://perldoc.perl.org/functions/rand"
},
{
"type": "REPORT",
"url": "https://security.metacpan.org/docs/guides/random-data-for-security.html"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2024-57868"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…