Skip to main content

Tinytag CVE-2026-32889

MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-03-20 security-advisories@github.com GHSA-f4rq-2259-hv29
6.5
CVSS 3.1 · GitHub Advisory
View

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.

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

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

Alert me

AnalysisAIv1 – 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

pypi tinytag fix: 2.2.1

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

GitHub Advisory PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Red Hat 6.5 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 20, 2026 - 03:15 nvd
MEDIUM 6.5

DescriptionGitHub 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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 3 pypi packages depend on tinytag (3 direct, 0 indirect)

Ecosystem-wide dependent count for version 2.2.1.

Executive ViewAI

Why It Matters

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.

Business Impact: Moderate
Compensating Controls

Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vendor GitHub VulDB

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.0%
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

Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)GitHub Advisory

cpe:2.3:a:tinytag_project:tinytag:2.2.0:*:*:*:*:python:*:*

Vendor StatusVendor

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