Memory Leak Vulnerability in FLAC Package: CVE-2017-6888

flac Updated 02 Oct 2025

Summary

25/04/2018
N/A
Yes i
Medium
5.5

ALPINE-CVE-2017-6888: An error in the "read_metadata_vorbiscomment_()" function (src/libFLAC/stream_decoder.c) in FLAC version 1.3.2 can be exploited to cause a memory leak via a specially crafted FLAC file. Affects flac versions < 1.3.2-r2. Fixed in 1.3.2-r2. 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

FLAC (Free Lossless Audio Codec) is an audio format for lossless compression of digital audio. It is widely used for high-quality audio storage and playback. The FLAC package in Alpine Linux provides tools for encoding and decoding FLAC files. This package is essential for users who require high-fidelity audio without loss of quality. However, it has been identified that certain versions of the FLAC package are vulnerable to a memory leak issue, which can be exploited through specially crafted FLAC files.

Vulnerability Detail

The vulnerability, identified as CVE-2017-6888, originates from an error in the 'read_metadata_vorbiscomment_()' function located in the src/libFLAC/stream_decoder.c file of FLAC version 1.3.2. This flaw allows an attacker to create a specially crafted FLAC file that, when processed, can lead to a memory leak. The ramifications of this vulnerability include potential denial of service due to excessive memory consumption, which could affect the performance and stability of applications relying on the FLAC package.

How To Fix

Minimum fixed version

1.3.2-r2

This is the first release that contains the fix.

sudo apk add --upgrade flac

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

Workaround

As a temporary workaround, users can avoid processing untrusted FLAC files until the package is updated. Additionally, monitoring memory usage during FLAC file processing can help mitigate the impact of this vulnerability.

Conclusion

The CVE-2017-6888 vulnerability in the FLAC package poses a risk of memory leaks when handling specially crafted files. Users are advised to update to the patched version to ensure their systems remain secure. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for flac →

Share this vulnerability

FAQ

CVE-2017-6888 is a vulnerability in the FLAC package that can lead to a memory leak when processing specially crafted FLAC files.

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

The CVSS score for CVE-2017-6888 is 5.5, indicating a moderate severity level.

If an immediate update is not possible, refrain from processing untrusted FLAC files and monitor memory usage to mitigate risks.

For real-time monitoring and alerts for open-source vulnerabilities, you can visit Vulert at https://vulert.com.

Related vulnerabilities

Recent vulnerabilities recorded for flac.

How To Fix

Minimum fixed version

1.3.2-r2

This is the first release that contains the fix.

sudo apk add --upgrade flac

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