CVE-2018-10540
An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can...
CVE-2018-10540 is a medium vulnerability (CVSS 5.5) in Wavpack, published April 29, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.62%, the 76th percentile. Fixed in wavpack 5.1.0-3.
An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can occur because ParseWave64HeaderConfig in wave64.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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can occur because ParseWave64HeaderConfig in wave64.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.
- Record
CVE-2018-10540- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can occur because ParseWave64HeaderConfig in wave64.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.
- Record
CVE-2018-10540- Updated
- 2026-11-02
EUVDEUVD-2018-2612 No score
An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can occur because ParseWave64HeaderConfig in wave64.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.
- Record
EUVD-2018-2612- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-q3x4-g6w4-58j4
5.5
An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can...
An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can occur because ParseWave64HeaderConfig in wave64.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.
- Record
GHSA-q3x4-g6w4-58j4- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
5.5
An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can occur because ParseWave64HeaderConfig in wave64.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.
- Record
CVE-2018-10540- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-10540
5.5
An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can occur because ParseWave64HeaderConfig in wave64.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.
- Record
DEBIAN-CVE-2018-10540- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVUBUNTU-CVE-2018-10540
5.5
An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds writes can occur because ParseWave64HeaderConfig in wave64.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.
- Record
UBUNTU-CVE-2018-10540- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2019-0045 No score
Updated wavpack packages fix security vulnerabilities
Joonun Jang discovered that WavPack incorrectly handled certain RF64 files. An attacker could possibly use this to cause a denial of service (CVE-2018-6767).
It was discovered that WavPack incorrectly handled certain DSDIFF files. An attacker could possibly use this to execute arbitrary code or cause a denial of service (CVE-2018-7253).
It was discovered that WavPack incorrectly handled certain CAF files. An attacker could possibly use this to cause a denial of service (CVE-2018-7254).
Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu discovered that WavPack incorrectly handled certain .wav files. An attacker could possibly use this to execute arbitrary code or cause a denial of service (CVE-2018-10536, CVE-2018-10537).
Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu discovered that WavPack incorrectly handled certain .wav files. An attacker could possibly use this to cause a denial of service (CVE-2018-10538, CVE-2018-10539, CVE-2018-10540).
It was discovered that WavPack incorrectly handled certain WAV files. An attacker could possibly use this issue to cause a denial of service (CVE-2018-19840, CVE-2018-19841).
- Record
MGASA-2019-0045- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:0153-1 No score
Security update for wavpack
This update for wavpack fixes the following issues:
- Update to version 5.4.0
- CVE-2020-35738: Fixed an out-of-bounds write in WavpackPackSamples (bsc#1180414)
- fixed: disable A32 asm code when building for Apple silicon
- fixed: issues with Adobe-style floating-point WAV files
- added: --normalize-floats option to wvunpack for correctly exporting un-normalized floating-point files
- Update to version 5.3.0
- fixed: OSS-Fuzz issues 19925, 19928, 20060, 20448
- fixed: trailing garbage characters on imported ID3v2 TXXX tags
- fixed: various minor undefined behavior and memory access issues
- fixed: sanitize tag extraction names for length and path inclusion
- improved: reformat wvunpack 'help' and split into long + short versions
- added: regression testing to Travis CI for OSS-Fuzz crashers
- Updated to version 5.2.0
*fixed: potential security issues including the following CVEs:
CVE-2018-19840, CVE-2018-19841, CVE-2018-10536 (bsc#1091344),
CVE-2018-10537 (bsc#1091343) CVE-2018-10538 (bsc#1091342),
CVE-2018-10539 (bsc#1091341), CVE-2018-10540 (bsc#1091340), CVE-2018-7254, CVE-2018-7253, CVE-2018-6767, CVE-2019-11498 and CVE-2019-1010319- added: support for CMake, Travis CI, and Google's OSS-fuzz
- fixed: use correction file for encode verify (pipe input, Windows)
- fixed: correct WAV header with actual length (pipe input, -i option)
- fixed: thumb interworking and not needing v6 architecture (ARM asm)
- added: handle more ID3v2.3 tag items and from all file types
- fixed: coredump on Sparc64 (changed MD5 implementation)
- fixed: handle invalid ID3v2.3 tags from sacd-ripper
- fixed: several corner-case memory leaks
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2021:0153-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:0154-1 No score
Security update for wavpack
This update for wavpack fixes the following issues:
- Update to version 5.4.0
- CVE-2020-35738: Fixed an out-of-bounds write in WavpackPackSamples (bsc#1180414)
- fixed: disable A32 asm code when building for Apple silicon
- fixed: issues with Adobe-style floating-point WAV files
- added: --normalize-floats option to wvunpack for correctly exporting un-normalized floating-point files
- Update to version 5.3.0
- fixed: OSS-Fuzz issues 19925, 19928, 20060, 20448
- fixed: trailing garbage characters on imported ID3v2 TXXX tags
- fixed: various minor undefined behavior and memory access issues
- fixed: sanitize tag extraction names for length and path inclusion
- improved: reformat wvunpack 'help' and split into long + short versions
- added: regression testing to Travis CI for OSS-Fuzz crashers
- Updated to version 5.2.0
*fixed: potential security issues including the following CVEs:
CVE-2018-19840, CVE-2018-19841, CVE-2018-10536 (bsc#1091344),
CVE-2018-10537 (bsc#1091343) CVE-2018-10538 (bsc#1091342),
CVE-2018-10539 (bsc#1091341), CVE-2018-10540 (bsc#1091340), CVE-2018-7254, CVE-2018-7253, CVE-2018-6767, CVE-2019-11498 and CVE-2019-1010319- added: support for CMake, Travis CI, and Google's OSS-fuzz
- fixed: use correction file for encode verify (pipe input, Windows)
- fixed: correct WAV header with actual length (pipe input, -i option)
- fixed: thumb interworking and not needing v6 architecture (ARM asm)
- added: handle more ID3v2.3 tag items and from all file types
- fixed: coredump on Sparc64 (changed MD5 implementation)
- fixed: handle invalid ID3v2.3 tags from sacd-ripper
- fixed: several corner-case memory leaks
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2021:0154-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:0186-1 No score
Security update for wavpack
This update for wavpack fixes the following issues:
- Update to version 5.4.0
- CVE-2020-35738: Fixed an out-of-bounds write in WavpackPackSamples (bsc#1180414)
- fixed: disable A32 asm code when building for Apple silicon
- fixed: issues with Adobe-style floating-point WAV files
- added: --normalize-floats option to wvunpack for correctly exporting un-normalized floating-point files
- Update to version 5.3.0
- fixed: OSS-Fuzz issues 19925, 19928, 20060, 20448
- fixed: trailing garbage characters on imported ID3v2 TXXX tags
- fixed: various minor undefined behavior and memory access issues
- fixed: sanitize tag extraction names for length and path inclusion
- improved: reformat wvunpack 'help' and split into long + short versions
- added: regression testing to Travis CI for OSS-Fuzz crashers
- Updated to version 5.2.0
*fixed: potential security issues including the following CVEs:
CVE-2018-19840, CVE-2018-19841, CVE-2018-10536 (bsc#1091344),
CVE-2018-10537 (bsc#1091343) CVE-2018-10538 (bsc#1091342),
CVE-2018-10539 (bsc#1091341), CVE-2018-10540 (bsc#1091340), CVE-2018-7254, CVE-2018-7253, CVE-2018-6767, CVE-2019-11498 and CVE-2019-1010319- added: support for CMake, Travis CI, and Google's OSS-fuzz
- fixed: use correction file for encode verify (pipe input, Windows)
- fixed: correct WAV header with actual length (pipe input, -i option)
- fixed: thumb interworking and not needing v6 architecture (ARM asm)
- added: handle more ID3v2.3 tag items and from all file types
- fixed: coredump on Sparc64 (changed MD5 implementation)
- fixed: handle invalid ID3v2.3 tags from sacd-ripper
- fixed: several corner-case memory leaks
- Record
SUSE-SU-2021:0186-1- Updated
- 2026-11-02
OSVUSN-3637-1 No score
wavpack vulnerabilities
Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu discovered that WavPack incorrectly handled certain .wav files. An attacker could possibly use this to execute arbitrary code or cause a denial of service. (CVE-2018-10536, CVE-2018-10537)
Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu discovered that WavPack incorrectly handled certain .wav files. An attacker could possibly use this to cause a denial of service. (CVE-2018-10538, CVE-2018-10539, CVE-2018-10540)
- Record
USN-3637-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
wavpackDebian:12 |
before 5.1.0-3 | 5.1.0-3 |
wavpackDebian:13 |
before 5.1.0-3 | 5.1.0-3 |
wavpackDebian:14 |
before 5.1.0-3 | 5.1.0-3 |
wavpackDebian:9 |
before 5.0.0-2+deb9u2, plus listed versions 5.0.0-25.0.0-2+deb9u1 |
5.0.0-2+deb9u2 |
wavpackMageia:6 |
before 5.1.0-1.1.mga6 | 5.1.0-1.1.mga6 |
wavpackSUSE:Linux Enterprise Module for Basesystem 15 SP2 |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Linux Enterprise Module for Desktop Applications 15 SP2 |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Linux Enterprise High Performance Computing 15-ESPOS |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Linux Enterprise High Performance Computing 15-LTSS |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
Show 13 moreShow less
| Package | Affected | Fixed |
|---|---|---|
wavpackSUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Linux Enterprise Server 15-LTSS |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Linux Enterprise Server 15 SP1-BCL |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Linux Enterprise Server 15 SP1-LTSS |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Linux Enterprise Server for SAP Applications 15 |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Linux Enterprise Server for SAP Applications 15 SP1 |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Manager Proxy 4.0 |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Manager Retail Branch Server 4.0 |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Manager Server 4.0 |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackSUSE:Enterprise Storage 6 |
before 5.4.0-4.9.1 | 5.4.0-4.9.1 |
wavpackUbuntu:18.04:LTS |
before 5.1.0-2ubuntu1.1, plus listed versions 5.1.0-25.1.0-2ubuntu1 |
5.1.0-2ubuntu1.1 |
wavpackopenSUSE:Leap 15.2 |
before 5.4.0-lp152.7.3.1 | 5.4.0-lp152.7.3.1 |
wavpackopenSUSE:Leap 15.1 |
before 5.4.0-lp151.5.6.1 | 5.4.0-lp151.5.6.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
github.com/dbry/WavPack/issues/33
debian.org/security/2018/dsa-4197
usn.ubuntu.com/3637-1
github.com/dbry/WavPack/commit/6f8bb34c2993a48ab9afbe353e6d0cff7c8d821d
seclists.org/bugtraq/2019/Dec/37
packetstormsecurity.com/files/155743/Slackware-Security-Advisory-wavpack-Updates.html
Show 41 moreShow less
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6CFFFWIWALGQPKINRDW3PRGRD5LOLGZA
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BRWQNE3TH5UF64IKHKKHVCHJHUOVKJUH
nvd.nist.gov/vuln/detail/CVE-2018-10540
lists.fedoraproject.org/archives/list/[email protected]/message/6CFFFWIWALGQPKINRDW3PRGRD5LOLGZA
lists.fedoraproject.org/archives/list/[email protected]/message/BRWQNE3TH5UF64IKHKKHVCHJHUOVKJUH
github.com/advisories/GHSA-q3x4-g6w4-58j4
security-tracker.debian.org/tracker/CVE-2018-10540
advisories.mageia.org/MGASA-2019-0045.html
bugs.mageia.org/show_bug.cgi?id=22588
usn.ubuntu.com/3568-1
usn.ubuntu.com/3578-1
usn.ubuntu.com/3839-1
suse.com/support/update/announcement/2021/suse-su-20210186-1
bugzilla.suse.com/1091340
bugzilla.suse.com/1091341
bugzilla.suse.com/1091342
bugzilla.suse.com/1091343
bugzilla.suse.com/1091344
bugzilla.suse.com/1180414
suse.com/security/cve/CVE-2018-10536
suse.com/security/cve/CVE-2018-10537
suse.com/security/cve/CVE-2018-10538
suse.com/security/cve/CVE-2018-10539
suse.com/security/cve/CVE-2018-10540
suse.com/security/cve/CVE-2018-19840
suse.com/security/cve/CVE-2018-19841
suse.com/security/cve/CVE-2018-6767
suse.com/security/cve/CVE-2018-7253
suse.com/security/cve/CVE-2018-7254
suse.com/security/cve/CVE-2019-1010319
suse.com/security/cve/CVE-2019-11498
suse.com/security/cve/CVE-2020-35738
ubuntu.com/security/CVE-2018-10540
ubuntu.com/security/notices/USN-3637-1
cve.org/CVERecord?id=CVE-2018-10540
ubuntu.com/security/CVE-2018-10536
ubuntu.com/security/CVE-2018-10537
ubuntu.com/security/CVE-2018-10538
ubuntu.com/security/CVE-2018-10539
lists.opensuse.org/archives/list/[email protected]/thread/EK4DH6BBB2WPBM677O7MFUOO5UBKUW37
lists.opensuse.org/archives/list/[email protected]/thread/FD5IPNZ6LGJLORJOQVT3MAHBWF3ORQPT