Heap Buffer Overflow in libsndfile

libsndfile Updated 02 Oct 2025

Summary

24/08/2021
N/A
Yes i
Unrated
Not published

ALSA-2021:3253: Important: libsndfile security update. Affects libsndfile versions < 1.0.28-10.el8_4.1. Fixed in 1.0.28-10.el8_4.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libsndfile is a C library used for reading and writing files containing sampled sound, such as AIFF, AU, or WAV. It provides functionality to handle various audio file formats. The library is widely used in audio processing applications and libraries.

Vulnerability Detail

The vulnerability (CVE-2021-3246) in libsndfile is a heap buffer overflow that can be exploited through a crafted WAV file. An attacker can create a malicious WAV file that triggers the overflow, potentially leading to arbitrary code execution. This vulnerability poses a significant risk to applications and systems that utilize libsndfile for audio file processing.

How To Fix

Minimum fixed version

1.0.28-10.el8_4.1

This is the first release that contains the fix.

sudo dnf update libsndfile

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the security update mentioned above to mitigate the risk.

Conclusion

The heap buffer overflow vulnerability in libsndfile poses a significant risk to systems and applications utilizing this library for audio file processing. It is crucial to update the libsndfile package to the latest version to mitigate the vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for libsndfile →

Share this vulnerability

FAQ

libsndfile is a C library for reading and writing audio files in various formats.

The vulnerability allows an attacker to execute arbitrary code by exploiting a heap buffer overflow in libsndfile.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) to the playground, and it will alert you if the vulnerability is present.

The recommended mitigation is to update the libsndfile package to the latest version that includes the necessary security patches.

You can find more details about this vulnerability, including the CVE identifier, in the References section of the CVE page linked in the 'related' field of this report.

Related vulnerabilities

Recent vulnerabilities recorded for libsndfile.

How To Fix

Minimum fixed version

1.0.28-10.el8_4.1

This is the first release that contains the fix.

sudo dnf update libsndfile

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback