Out-of-bounds Read Affecting libsndfile package, versions [,1.2.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (32nd 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 IDSNYK-CONAN-LIBSNDFILE-10077353
  • published8 May 2025
  • disclosed25 Mar 2022
  • credityuawn

Introduced: 25 Mar 2022

CVE-2021-4156  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade libsndfile to version 1.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in flac.c. An attacker who is able to submit a specially crafted file (via tricking a user to open or otherwise) to an application linked with libsndfile and using the FLAC codec, could trigger an out-of-bounds read that would most likely cause a crash but could potentially leak memory information that could be used in further exploitation of other flaws.

CVSS Base Scores

version 3.1