The function WavpackPackInit in pack_utils.c in libwavpack.a in WavPack through 5.1.0 allows attackers to cause a denial-of-service (resource exhaustion caused by an infinite loop) via a crafted wav audio file because WavpackSetConfiguration64 mishandles a sample rate of zero.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "14.04"
},
{
"last_affected": "14.04"
},
{
"introduced": "16.04"
},
{
"last_affected": "16.04"
},
{
"introduced": "18.04"
},
{
"last_affected": "18.04"
},
{
"introduced": "18.10"
},
{
"last_affected": "18.10"
}
],
"source": "CPE_STRING",
"vendor_product": "canonical:ubuntu_linux"
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:28:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:29:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "28"
},
{
"last_affected": "28"
},
{
"introduced": "29"
},
{
"last_affected": "29"
},
{
"introduced": "30"
},
{
"last_affected": "30"
}
],
"source": "CPE_STRING",
"vendor_product": "fedoraproject:fedora"
},
{
"cpes": [
"cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "15.0"
},
{
"last_affected": "15.0"
}
],
"source": "CPE_STRING",
"vendor_product": "opensuse:leap"
}
]
}{
"cpe": "cpe:2.3:a:wavpack:wavpack:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "5.1.0"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-19840.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"109524009393532704057515757123608873934",
"308187253253712338333845699135135578363",
"160307732922576192310224126902144133758"
],
"threshold": 0.9
},
"id": "CVE-2018-19840-01548206",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/dbry/wavpack/commit/070ef6f138956d9ea9612e69586152339dbefe51",
"target": {
"file": "src/pack_utils.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "33576504915719694319716314055280451550",
"length": 5678
},
"id": "CVE-2018-19840-edf4b29c",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/dbry/wavpack/commit/070ef6f138956d9ea9612e69586152339dbefe51",
"target": {
"file": "src/pack_utils.c",
"function": "WavpackSetConfiguration64"
}
}
]
"2026-09-08T14:12:04Z"