Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-19840
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:29 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-19840
Complete source record
{
"id": "fdc935f7d7c077d91c3659693ff8bd7432cb7e7b0e64cbe1d06857cd1a5a4c04",
"url": "https://osv.dev/vulnerability/CVE-2018-19840",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-19840",
"summary": "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.",
"evidence": "osv:CVE-2018-19840",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-19840",
"aliases": [
"CVE-2018-19840"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/dbry/wavpack",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "9ccc3fe4a37d069137ceabe513a4dd9b0a09c1c2"
},
{
"fixed": "070ef6f138956d9ea9612e69586152339dbefe51"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:wavpack:wavpack:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.1.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "070ef6f138956d9ea9612e69586152339dbefe51"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"5.1.0",
"5.0.0",
"5.0.0-alpha5",
"5.0.0-alpha4",
"5.0.0-alpha3",
"5.0.0-alpha2",
"5.0.0-alpha",
"4.80.0",
"4.80.0-rc",
"4.75.2",
"4.75.0",
"4.75.0-rc",
"4.70.0",
"4.70.0-rc"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-19840.json",
"vanir_signatures": [
{
"id": "CVE-2018-19840-01548206",
"digest": {
"threshold": 0.9,
"line_hashes": [
"109524009393532704057515757123608873934",
"308187253253712338333845699135135578363",
"160307732922576192310224126902144133758"
]
},
"source": "https://github.com/dbry/wavpack/commit/070ef6f138956d9ea9612e69586152339dbefe51",
"target": {
"file": "src/pack_utils.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-19840-edf4b29c",
"digest": {
"length": 5678,
"function_hash": "33576504915719694319716314055280451550"
},
"source": "https://github.com/dbry/wavpack/commit/070ef6f138956d9ea9612e69586152339dbefe51",
"target": {
"file": "src/pack_utils.c",
"function": "WavpackSetConfiguration64"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:44:50Z"
}
}
],
"modified": "2026-10-20T13:44:50.987730020Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2021/01/msg00013.html",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3BLSOEVEKF4VNNVNZ2AN46BJUT4TGVWT/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6CFFFWIWALGQPKINRDW3PRGRD5LOLGZA/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BRWQNE3TH5UF64IKHKKHVCHJHUOVKJUH/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NZGXJUHCGQI6XKLCBUZHXPYIIWMFWA22/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WVVKOBJR5APOB3KWUWJ4UWQHUBZQL6C6/",
"https://seclists.org/bugtraq/2019/Dec/37",
"https://github.com/dbry/WavPack/issues/53",
"https://security.gentoo.org/glsa/202007-19",
"https://usn.ubuntu.com/3839-1/",
"https://github.com/dbry/WavPack/commit/070ef6f138956d9ea9612e69586152339dbefe51"
],
"provider_metadata": {
"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:*:*:*:*:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"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"
}
]
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:28:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:29:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "28"
},
{
"last_affected": "28"
},
{
"introduced": "29"
},
{
"last_affected": "29"
},
{
"introduced": "30"
},
{
"last_affected": "30"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*"
],
"vendor_product": "opensuse:leap",
"extracted_events": [
{
"range": [
{
"introduced": "15.0"
},
{
"last_affected": "15.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-19840",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388007,
"published_at": "2018-12-04T09:29:00.6+00:00"
}