libweb-api-perl — security advisory
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.
- Products
- libweb-api-perl
- Affected versions
- 2.2.3-1, 2.4.1-1, 2.5-1, 2.6-1, 2.7-1, 2.7-2, 2.7-3, 2.8-1
- Fixed versions
- Not specified
- CVEs
- CVE-2024-57868
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:30 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2024-57868
libweb-api-perl
Fixed versions: Not specified
libweb-api-perl
Fixed versions: Not specified
libweb-api-perl
Fixed versions: Not specified
libweb-api-perl
Fixed versions: Not specified
libweb-api-perl
Fixed versions: Not specified
libweb-api-perl
Fixed versions: Not specified
libweb-api-perl
Fixed versions: Not specified
Complete source record
{
"id": "7245fd272b7d8e94193284e26d0911d1c563ab27f4d261a629484396954f91fa",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-57868",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2024-57868",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2024-57868",
"products": [
{
"name": {
"value": "libweb-api-perl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.2.3-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libweb-api-perl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.4.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.5-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.6-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libweb-api-perl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libweb-api-perl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7-2",
"evidence": "/affected/3/versions"
},
{
"value": "2.7-3",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libweb-api-perl",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libweb-api-perl",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libweb-api-perl",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8-1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2024-57868",
"aliases": [
"UBUNTU-CVE-2024-57868"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"2.2.3-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.2.3-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.4.1-1",
"2.5-1",
"2.6-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.6-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.7-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.7-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.7-2",
"2.7-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.7-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.8-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.8-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.8-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.8-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libweb-api-perl",
"purl": "pkg:deb/ubuntu/libweb-api-perl?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.8-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-57868.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libweb-api-perl",
"binary_version": "2.8-1"
}
]
}
}
],
"modified": "2026-10-17T12:57:00.038949988Z",
"provider": "osv",
"upstream": [
"CVE-2024-57868"
],
"references": [
"https://ubuntu.com/security/CVE-2024-57868",
"https://www.cve.org/CVERecord?id=CVE-2024-57868",
"https://lists.security.metacpan.org/cve-announce/msg/28503730/",
"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L20",
"https://metacpan.org/dist/Web-API/source/lib/Web/API.pm#L348",
"https://metacpan.org/release/BAREFOOT/Data-Random-0.13/source/lib/Data/Random.pm#L537",
"https://perldoc.perl.org/functions/rand",
"https://security.metacpan.org/docs/guides/random-data-for-security.html"
]
},
"related_cves": [
{
"value": "CVE-2024-57868",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356619,
"published_at": "2025-04-05T16:15:00+00:00"
}