Buffer Over-read Vulnerability in libsndfile: CVE-2018-19662

libsndfile Updated 02 Oct 2025

Summary

29/11/2018
N/A
Yes i
High
8.1

ALPINE-CVE-2018-19662: An issue was discovered in libsndfile 1.0.28. There is a buffer over-read in the function i2alaw_array in alaw.c that will lead to a denial of service. Affects libsndfile versions < 1.0.28-r6. Fixed in 1.0.28-r6. 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 widely used library for reading and writing audio files in various formats. It provides a simple API for developers to handle audio data efficiently. However, like many libraries, it can be susceptible to vulnerabilities that may compromise the integrity and availability of applications that rely on it. The specific vulnerability identified as CVE-2018-19662 affects versions of libsndfile prior to 1.0.28-r6, where a buffer over-read can occur, leading to potential denial of service.

Vulnerability Detail

An issue was discovered in libsndfile 1.0.28. There is a buffer over-read in the function i2alaw_array in alaw.c that can lead to a denial of service. This vulnerability arises from improper handling of audio data, which can allow an attacker to exploit the library's functionality, potentially crashing the application or causing unexpected behavior. The CVSS score for this vulnerability is 8.1, indicating a high severity level.

How To Fix

Minimum fixed version

1.0.28-r6

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

If an immediate update is not feasible, consider implementing input validation to ensure that audio data processed by libsndfile does not trigger the buffer over-read. This may involve sanitizing inputs or limiting the size of audio files that can be processed.

Conclusion

The buffer over-read vulnerability in libsndfile, identified as CVE-2018-19662, poses a significant risk to applications using this library. It is crucial to update to the patched version 1.0.28-r6 to mitigate the risks associated with this vulnerability. Regular monitoring and timely updates are essential to maintain application security.

See every vulnerability recorded for libsndfile →

Share this vulnerability

FAQ

CVE-2018-19662 is a vulnerability in the libsndfile library that allows for a buffer over-read, potentially leading to denial of service.

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

Exploiting this vulnerability can lead to application crashes or unexpected behavior, impacting the availability of services that rely on libsndfile.

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

The CVSS score for CVE-2018-19662 is 8.1, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for libsndfile.

How To Fix

Minimum fixed version

1.0.28-r6

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