Heap-Based Buffer Over-Read Vulnerability in libsndfile - CVE-2017-8363
Summary
ALPINE-CVE-2017-8363: The flac_buffer_copy function in flac.c in libsndfile 1.0.28 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted audio file. Affects libsndfile versions < 1.0.28-r1. Fixed in 1.0.28-r1. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 on audio applications. However, it is susceptible to vulnerabilities that can be exploited by attackers, particularly when handling crafted audio files.
Vulnerability Detail
The vulnerability identified as CVE-2017-8363 in libsndfile version 1.0.28 arises from the flac_buffer_copy function in flac.c. This flaw allows remote attackers to exploit a crafted audio file, leading to a heap-based buffer over-read and potentially causing the application to crash. The ramifications of this vulnerability include denial of service, which can disrupt the functionality of applications relying on libsndfile for audio processing.
How To Fix
Minimum fixed version
1.0.28-r1
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, avoid processing untrusted audio files until the library is updated. Implement input validation to ensure that only safe audio files are processed.
Conclusion
CVE-2017-8363 is a significant vulnerability in the libsndfile library that can lead to denial of service through crafted audio files. It is crucial to update to the patched version to ensure the security and stability of applications using this library.
See every vulnerability recorded for libsndfile →
FAQ
CVE-2017-8363 is a vulnerability in the libsndfile library that allows remote attackers to cause a denial of service through a crafted audio file.
You can check if your application is affected by using the Vulert playground at Vulert Scanner, which analyzes your manifest file for vulnerabilities.
The primary consequence is a denial of service, where the application may crash when processing malicious audio files.
Yes, a patch is available in version 1.0.28-r1 of libsndfile. Updating to this version will resolve the vulnerability.
If immediate updates are not possible, avoid processing untrusted audio files and implement input validation as a temporary measure.
References
Related vulnerabilities
Recent vulnerabilities recorded for libsndfile.