Buffer Overflow Vulnerability in libsndfile: CVE-2019-3832

libsndfile Updated 02 Oct 2025

Summary

21/03/2019
N/A
Yes i
Medium
5.5

ALPINE-CVE-2019-3832: It was discovered the fix for CVE-2018-19758 (libsndfile) was not complete and still allows a read beyond the limits of a buffer in wav_write_header() function in wav.c. Affects libsndfile versions < 1.0.28-r8. Fixed in 1.0.28-r8. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

libsndfile is a widely used library for reading and writing audio files in various formats, including WAV, AIFF, and FLAC. It provides a simple API for audio file manipulation, making it a popular choice among developers working with audio processing applications. However, a vulnerability was discovered that affects multiple versions of this library, potentially compromising the stability and security of applications that rely on it.

Vulnerability Detail

The vulnerability, identified as CVE-2019-3832, stems from an incomplete fix for a previous issue (CVE-2018-19758) that allows a read beyond the limits of a buffer in the wav_write_header() function within wav.c. This flaw can be exploited by a local attacker to crash the application, leading to denial of service. The technical aspect of this vulnerability involves improper handling of buffer sizes, which can result in memory corruption and unpredictable behavior.

How To Fix

Minimum fixed version

1.0.28-r8

This is the first release that contains the fix.

sudo apk add --upgrade libsndfile

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

Workaround

As a temporary workaround, if updating the package is not feasible, consider restricting access to the application to trusted users only, thereby minimizing the risk of exploitation. Additionally, ensure that your application has proper error handling to mitigate potential crashes.

Conclusion

CVE-2019-3832 is a significant vulnerability in the libsndfile library that can lead to application crashes due to buffer overflow issues. It is crucial for developers and system administrators to update to the patched version to ensure the security and stability of their applications. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for libsndfile →

Share this vulnerability

FAQ

CVE-2019-3832 is a vulnerability in the libsndfile library that allows a local attacker to exploit a buffer overflow, potentially crashing the application.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Exploitation of this vulnerability can lead to application crashes, resulting in denial of service and potential disruption of services relying on the affected library.

Yes, the patched version of libsndfile is 1.0.28-r8. Updating to this version will resolve the vulnerability.

Vulert is a tool that monitors and alerts in real-time for open-source vulnerabilities in software using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for libsndfile.

How To Fix

Minimum fixed version

1.0.28-r8

This is the first release that contains the fix.

sudo apk add --upgrade 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