Out-of-bounds Write Affecting dbry/WavPack package, versions [,5.2.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.74% (78th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-DBRYWAVPACK-3008072
  • published26 Jan 2022
  • disclosed29 Apr 2018
  • creditUnknown

Introduced: 29 Apr 2018

CVE-2018-10538  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade dbry/WavPack to version 5.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write. 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.

CVSS Base Scores

version 3.1