Heap-Based Buffer Over-Read Vulnerability in libsndfile - CVE-2017-8363

libsndfile Updated 02 Oct 2025

Summary

30/04/2017
N/A
Yes i
Medium
6.5

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 ↓

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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for libsndfile.

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 →

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