Tinytag
CVE-2026-32889
MEDIUM
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS v3.1 score of 6.5 (Medium-High) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H indicates a network-accessible, low-complexity attack requiring no privileges but with user interaction. The attack vector and low complexity suggest ease of exploitation, while the high availability impact reflects the denial-of-service nature. The requirement for user interaction (UI:R) in the CVSS vector suggests the attacker must convince a user or system to parse a supplied file, which is realistic for server-side file processing scenarios but reduces severity compared to fully unauthenticated attacks. Given that a proof-of-concept exploit (a 498-byte malicious MP3 file) has been publicly disclosed, the practical exploitability is high. For organizations running tinytag in automated file processing pipelines (document conversion, music library scanning, content analysis platforms), this represents a genuine availability risk, as a single file can permanently hang worker processes. However, the impact is limited to denial-of-service without information disclosure or integrity compromise. Real-world priority should be elevated in deployment contexts where untrusted file uploads are processed automatically without rate-limiting or timeout protections. |
| Exploit ScenarioDerived | A music streaming platform that automatically indexes user-uploaded MP3 files processes metadata using tinytag. An attacker uploads a 498-byte specially crafted MP3 file containing a malformed ID3v2 SYLT frame. When the indexing service parses this file, the _parse_synced_lyrics method enters an infinite loop attempting to find the string terminator, causing the worker process to consume 100% CPU indefinitely. With no timeout protection, the process hangs until manually terminated by an administrator, disrupting service for legitimate users. By uploading multiple such files, an attacker could exhaust all available workers, causing a complete denial-of-service. The low attack complexity and lack of privilege requirements make this a trivial attack for any user with file upload access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 20, 2026
A non-terminating loop denial-of-service vulnerability exists in tinytag version 2.2.0, a Python library for reading audio file metadata. An attacker can supply a malicious MP3 file containing a crafted ID3v2 SYLT (synchronized lyrics) frame that causes the parsing operation to enter an infinite loop, consuming CPU resources until the worker process is terminated. The vulnerability affects server-side deployments that automatically parse user-supplied files, and has been patched in version 2.2.1.
RemediationAI
Upgrade tinytag to version 2.2.1 or later immediately using pip (pip install --upgrade tinytag>=2.2.1) or equivalent package management tools. Verify the upgrade by checking the installed version with pip show tinytag or examining your requirements.txt/poetry.lock files. Until patching is feasible, implement timeout mechanisms for file parsing operations (e.g., using Python's signal.alarm() or multiprocessing.Process with timeout parameters) to kill hanging parsers after a reasonable duration (5-30 seconds depending on expected file sizes). Additionally, restrict MP3 file parsing to authenticated users where possible, validate SYLT frame structure before parsing, and consider disabling ID3v2 SYLT frame parsing if not required for your application. Monitor process resource usage and implement rate-limiting on file upload endpoints to limit the impact of malicious file submissions. For the latest patch details and commit references, consult the official GitHub security advisory at https://github.com/tinytag/tinytag/security/advisories/GHSA-f4rq-2259-hv29.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
tinytag is a Python library designed to extract metadata from audio files including MP3, OGG, FLAC, and other formats. The vulnerability resides in the _parse_synced_lyrics method, which processes ID3v2 SYLT frames—a standard ID3v2 tag structure used for embedding synchronized lyrics in MP3 files. The root cause falls under CWE-835 (Loop with Unreachable Exit Condition), specifically where the _parse_synced_lyrics function makes an unsafe assumption that the _find_string_end_pos helper function always returns a position strictly greater than the current offset. When processing a malformed SYLT frame lacking a proper string terminator in its remaining content, _find_string_end_pos returns a position equal to or less than the current offset, causing the parsing loop to never advance and remain in an infinite iteration. This is a classic infinite loop vulnerability triggered by insufficient input validation and boundary checking in frame parsing logic.
Know when Tinytag 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
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
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.
Blast Radius
ecosystem impact- 3 pypi packages depend on tinytag (3 direct, 0 indirect)
Ecosystem-wide dependent count for version 2.2.1.
Executive ViewAI
Organizations using tinytag should be aware of notable risk from CVE-2026-32889 rated CVSS 6.5. Exploitation could compromise the security of affected deployments. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.
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
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-f4rq-2259-hv29
NVD
CVE.org
EPSS
VulDB
Exploit-DB