Security advisory
An issue was discovered in WavPack 5.1.0 and earlier for WAV input. Out-of-bounds writes can occur because ParseRiffHeaderConfig in riff.c does not validate the sizes of unknown chunks before attempting memory allocation, related to a lack of integer-overflow protection within a bytes_to_copy calculation and subsequent malloc call, leading to insufficient memory allocation.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-10538
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:26 UTC · Revision 1
Source evidence
An issue was discovered in WavPack 5.1.0 and earlier for WAV input. Out-of-bounds writes can occur because ParseRiffHeaderConfig in riff.c does not validate the sizes of unknown chunks before attempting memory allocation, related to a lack of integer-overflow protection within a bytes_to_copy calculation and subsequent malloc call, leading to insufficient memory allocation.
osv:CVE-2018-10538
Complete source record
{
"id": "2c73571105540a66c3723c42a951a1d8ac591e47ea9f5f0180cc974560b0c696",
"url": "https://osv.dev/vulnerability/CVE-2018-10538",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-10538",
"summary": "An issue was discovered in WavPack 5.1.0 and earlier for WAV input. Out-of-bounds writes can occur because ParseRiffHeaderConfig in riff.c does not validate the sizes of unknown chunks before attempting memory allocation, related to a lack of integer-overflow protection within a bytes_to_copy calculation and subsequent malloc call, leading to insufficient memory allocation.",
"evidence": "osv:CVE-2018-10538",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-10538",
"aliases": [
"CVE-2018-10538"
],
"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": "6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:wavpack:wavpack:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.1.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d"
}
],
"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-10538.json",
"vanir_signatures": [
{
"id": "CVE-2018-10538-294a3284",
"digest": {
"length": 7859,
"function_hash": "184729569822965087301669000513246286331"
},
"source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
"target": {
"file": "cli/riff.c",
"function": "ParseRiffHeaderConfig"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-10538-2fa9a354",
"digest": {
"threshold": 0.9,
"line_hashes": [
"232057494164455220144767172649489583477",
"110611123730469900830689342829752355457",
"81420611912405984134380139041615867790",
"93188358815698090562778273243671871941"
]
},
"source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
"target": {
"file": "cli/dsdiff.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-10538-b6880098",
"digest": {
"threshold": 0.9,
"line_hashes": [
"111297851007108909387284957869522922221",
"7400751062271159508161043106211857359",
"89150272844446672438462142820231743482",
"322445074363613205102206904284568707515"
]
},
"source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
"target": {
"file": "cli/wave64.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-10538-c836fca3",
"digest": {
"threshold": 0.9,
"line_hashes": [
"213820010221483680803095728996233934287",
"333107393162424743504898156762320146440",
"336250158133138648718424887759520376101",
"322445074363613205102206904284568707515"
]
},
"source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
"target": {
"file": "cli/riff.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-10538-c87123eb",
"digest": {
"length": 6500,
"function_hash": "288370877697744344414771569440210308840"
},
"source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
"target": {
"file": "cli/wave64.c",
"function": "ParseWave64HeaderConfig"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-10538-d33b0fd3",
"digest": {
"length": 6569,
"function_hash": "63525521758563211822843282193964747098"
},
"source": "https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d",
"target": {
"file": "cli/dsdiff.c",
"function": "ParseDsdiffHeaderConfig"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:32:59Z"
}
}
],
"modified": "2026-10-20T13:32:59.371385504Z",
"provider": "osv",
"references": [
"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://seclists.org/bugtraq/2019/Dec/37",
"https://usn.ubuntu.com/3637-1/",
"https://www.debian.org/security/2018/dsa-4197",
"https://github.com/dbry/WavPack/issues/33",
"https://github.com/dbry/WavPack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
},
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-10538",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387826,
"published_at": "2018-04-29T15:29:00.507+00:00"
}