Skip to main content

libFLAC EUVDEUVD-2026-135765

| CVE-2026-137081 MEDIUM
Memory Leak (CWE-401)
2026-11-25 VulnCheck GHSA-c3q4-cvhq-4qmj
4.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit audio stream to encoder service
  2. Exploit
    Encoder reuse leaks frame bitwriter buffer
  3. Execution
    Repeat submissions across many streams
  4. Impact
    Exhaust process memory, denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

Requires a long-running application built on libFLAC 1.5.0 that reuses a single FLAC__StreamEncoder instance across many encode cycles (init, process, finish, then re-init) rather than allocating a new encoder per stream; the attacker must be able to feed that service many audio streams so the ≥32 KiB-per-finish leak accumulates. Limiting factors: only libFLAC 1.5.0 is affected; impact is availability-only and slow (gradual exhaustion, not immediate crash); applications that create a fresh encoder per stream do not accumulate the leak; and exploitation needs sustained, repeated stream submissions over time rather than a single request. The only complete fix is updating to the patched build (PR #948).

Impact

This is a genuinely low-to-moderate priority issue, not a high-CVSS alarm. The CVSS 4.0 base score is 4.8 (medium) with an availability-only impact (VA:L; VC:N, VI:N) - the worst realistic outcome is gradual memory exhaustion of a long-running process, not code execution or data disclosure. The vuln.today Decision label is 'this_month', consistent with routine patching rather than emergency action. No CISA KEV entry, no EPSS score, and no public exploit code were provided, so all three high-urgency amplifiers are absent; the only intelligence is a VulnCheck advisory and a vendor patch. One signal conflicts: the CVSS vector marks AV:L (local), but the description - 'attackers submitting many audio streams to a long-running service' - implies the attack surface may be network-reachable in a service deployment; this is deployment-dependent (the flaw itself lives in a local library), so the attack vector should be verified against the specific service exposing libFLAC rather than assumed from the base vector. Exploitation also depends on a non-default usage pattern (a single encoder reused across many streams), which meaningfully narrows real-world exposure.

Exploit ScenarioDerived

An attacker repeatedly submits audio streams to a long-running transcoding or streaming service that reuses a single libFLAC 1.5.0 encoder (init → process → finish → re-init) instead of creating a fresh encoder per stream. Each FLAC__stream_encoder_finish() leaks at least 32 KiB because the main thread task's frame bit writer buffer is never freed, so sustained submissions gradually exhaust memory until the service is OOM-killed or crashes. No public exploit code is identified; the vendor PR adds only a leak-detection unit test, not a weaponized exploit.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

Memory exhaustion in apps built on libFLAC 1.5.0 arises when a single FLAC__stream_encoder_finish() call leaves the main task's frame bit-writer buffer allocated, because free_() only releases frame buffers for worker tasks (index > 0), leaking roughly 32 KiB on every encoder reuse cycle. Only services that reuse one encoder instance across many streams, such as long-running transcoders or streaming servers, accumulate the leak; applications that build a fresh encoder per stream reset the state and are not affected. Severity is limited (CVSS 4.8, availability-only, local attack vector with user interaction per the CVE record), and there is no confirmed active exploitation; a public upstream pull request (#948) and a regression test are the available fix.

RemediationAI

Update to a libFLAC build containing upstream PR #948 (https://github.com/xiph/flac/pull/948), which releases the main task's frame bit writer in free_() so a reused encoder no longer leaks ~32 KiB per finish; vendor patch availability is confirmed and the PR includes a new reuse regression test for valgrind/LeakSanitizer runs. Until a patched build is deployed, services can mitigate by allocating a fresh FLAC__StreamEncoder for each stream and deleting it after finish instead of re-initializing a single long-lived encoder - the trade-off is a small per-stream allocation cost and refactoring of encoder lifecycle code, but it removes the accumulation path entirely. Operators of exposed encoding services should also cap per-connection and per-process memory plus restart long-running encoder workers periodically as a compensating control, accepting that restarts interrupt in-flight encodes; there is no configuration flag in libFLAC that disables the retained main-task frame buffer.

Affected VersionsENISA

libFLAC 1.5.0 ≤1.5.0

Affected Packages

euvd libflac no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libFLAC's stream encoder keeps a per-task array of frame bit writers. The main encoding task's frame is retained between initializations for reuse, but the teardown routine free_() guarded buffer release with 'if(t > 0)', skipping index 0 entirely - so the main task's FLAC__bitwriter was never freed when the encoder was finished and later re-initialized. This is a classic CWE-401 missing-release flaw: no out-of-bounds access or corruption, purely unreleased heap memory. The upstream fix flips the condition to release the main task's writer at index 0 while leaving the worker-task branch intact, and adds a reuse-focused unit test (test_stream_encoder_reuse) that cycles init/process/finish three times, alternating thread counts, intended to be run under valgrind or LeakSanitizer. Multithreaded operation widens exposure because additional thread tasks are created and destroyed between inits. The affected CPE is xiph.org libflac, with the flaw specific to the 1.5.0 source tree (the linked lines 1280 and 2767 of stream_encoder.c).

Know when Libflac gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 4.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 3.3 LOW

Availability-only memory leak (A:L, C:N/I:N); requires an app to reuse one encoder and passively process attacker-supplied streams (UI:R), with the flaw residing in a local library (AV:L).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Xiph.Org libFLAC 1.5.0 contains a memory leak in FLAC__stream_encoder_finish() because free_() never releases the main thread task's frame bit writer buffer. Attackers submitting many audio streams to a long-running service that reuses one encoder can leak at least 32 KiB per stream, causing memory exhaustion.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
FLAC reference audio library is common, but encoder-reuse long-running services are niche
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy