{"id":"CVE-2018-10538","details":"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.","modified":"2026-02-22T01:21:20.801506Z","published":"2018-04-29T15:29:00.507Z","related":["MGASA-2019-0045","SUSE-SU-2021:0186-1","openSUSE-SU-2021:0153-1","openSUSE-SU-2021:0154-1"],"references":[{"type":"WEB","url":"http://packetstormsecurity.com/files/155743/Slackware-Security-Advisory-wavpack-Updates.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6CFFFWIWALGQPKINRDW3PRGRD5LOLGZA/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BRWQNE3TH5UF64IKHKKHVCHJHUOVKJUH/"},{"type":"WEB","url":"https://seclists.org/bugtraq/2019/Dec/37"},{"type":"ADVISORY","url":"https://github.com/dbry/WavPack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d"},{"type":"ADVISORY","url":"https://github.com/dbry/WavPack/issues/33"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3637-1/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2018/dsa-4197"},{"type":"REPORT","url":"https://github.com/dbry/WavPack/issues/33"},{"type":"FIX","url":"https://github.com/dbry/WavPack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d"},{"type":"EVIDENCE","url":"https://github.com/dbry/WavPack/issues/33"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/dbry/wavpack","events":[{"introduced":"0"},{"fixed":"6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d"}]}],"versions":["4.70.0","4.70.0-rc","4.75.0","4.75.0-rc","4.75.2","4.80.0","4.80.0-rc","5.0.0","5.0.0-alpha","5.0.0-alpha2","5.0.0-alpha3","5.0.0-alpha4","5.0.0-alpha5","5.1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-10538.json","vanir_signatures":[{"digest":{"length":7859,"function_hash":"184729569822965087301669000513246286331"},"source":"https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d","id":"CVE-2018-10538-294a3284","signature_version":"v1","target":{"function":"ParseRiffHeaderConfig","file":"cli/riff.c"},"deprecated":false,"signature_type":"Function"},{"digest":{"line_hashes":["232057494164455220144767172649489583477","110611123730469900830689342829752355457","81420611912405984134380139041615867790","93188358815698090562778273243671871941"],"threshold":0.9},"source":"https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d","id":"CVE-2018-10538-2fa9a354","signature_version":"v1","target":{"file":"cli/dsdiff.c"},"deprecated":false,"signature_type":"Line"},{"digest":{"line_hashes":["111297851007108909387284957869522922221","7400751062271159508161043106211857359","89150272844446672438462142820231743482","322445074363613205102206904284568707515"],"threshold":0.9},"source":"https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d","id":"CVE-2018-10538-b6880098","signature_version":"v1","target":{"file":"cli/wave64.c"},"deprecated":false,"signature_type":"Line"},{"digest":{"line_hashes":["213820010221483680803095728996233934287","333107393162424743504898156762320146440","336250158133138648718424887759520376101","322445074363613205102206904284568707515"],"threshold":0.9},"source":"https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d","id":"CVE-2018-10538-c836fca3","signature_version":"v1","target":{"file":"cli/riff.c"},"deprecated":false,"signature_type":"Line"},{"digest":{"length":6500,"function_hash":"288370877697744344414771569440210308840"},"source":"https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d","id":"CVE-2018-10538-c87123eb","signature_version":"v1","target":{"function":"ParseWave64HeaderConfig","file":"cli/wave64.c"},"deprecated":false,"signature_type":"Function"},{"digest":{"length":6569,"function_hash":"63525521758563211822843282193964747098"},"source":"https://github.com/dbry/wavpack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d","id":"CVE-2018-10538-d33b0fd3","signature_version":"v1","target":{"function":"ParseDsdiffHeaderConfig","file":"cli/dsdiff.c"},"deprecated":false,"signature_type":"Function"}]}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}