Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit audio stream to encoder service
-
ExploitEncoder reuse leaks frame bitwriter buffer
-
ExecutionRepeat submissions across many streams
-
ImpactExhaust 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Heap-based buffer overflow in stream_decoder.c in libFLAC before 1.3.1 allows remote attackers to execute arbitrary code
Stack-based buffer overflow in stream_decoder.c in libFLAC before 1.3.1 allows remote attackers to execute arbitrary cod
EUVD-2026-135765
GHSA-c3q4-cvhq-4qmj
NVD
CVE.org
EPSS
Exploit-DB