Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-104266 Overview
CVE-2026-104266 is a denial-of-service vulnerability in tinytag, a Python library for reading audio file metadata. Versions from 2.0.0 up to (but not including) 2.3.0 contain a flaw in the M4A metadata parser. A crafted M4A file with a sub-atom of size zero inside a ---- atom causes the custom-field atom traversal to stop advancing through the input. The parser repeatedly processes the malformed location, producing an infinite loop [CWE-835]. Any program that reads the crafted file hangs and consumes CPU until terminated. The maintainers fixed the issue in version 2.3.0.
Critical Impact
A malformed M4A file can trigger an infinite loop in the tinytag parser, denying service to any application that reads untrusted audio metadata.
Affected Products
- tinytag Python library versions 2.0.0 through 2.2.x
- Applications bundling tinytag for audio metadata extraction
- Automated pipelines processing untrusted M4A files with tinytag
Discovery Timeline
- 2026-10-15 - CVE-2026-104266 published to the National Vulnerability Database (NVD)
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-104266
Vulnerability Analysis
The vulnerability resides in the M4A metadata parser inside tinytag. M4A files use a hierarchical atom (box) structure, where each atom declares its own size. The parser walks these atoms sequentially, using the declared size to advance its read offset. When a sub-atom nested inside a ---- custom-field atom reports a size of zero, the parser fails to advance past it. The outer traversal loop then re-reads the same malformed position indefinitely. The result is unbounded CPU consumption and a hung process. Successful exploitation requires that a victim application parse an attacker-supplied M4A file, which is common in media platforms, mail scanners, and content-ingestion pipelines.
Root Cause
The root cause is missing validation of atom size fields during custom-field (----) atom traversal. The parser trusts the declared size and uses it as the loop increment without enforcing a minimum forward progress or a maximum iteration bound. A size of zero therefore produces a non-terminating loop, which maps to [CWE-835] Loop with Unreachable Exit Condition.
Attack Vector
An attacker crafts an M4A file containing a ---- atom with an inner sub-atom whose size field is set to zero. The attacker delivers the file through any channel the target application accepts, including file uploads, email attachments, cloud storage sync, or a web-fetched asset. When the application invokes tinytag to extract metadata, the worker thread or process enters the infinite loop. Exploitation requires user interaction only in the sense that the target application must read the file; no authentication or network session with the attacker is required. See the GitHub Security Advisory GHSA-24cc-9352-h2pg for additional detail.
The vulnerable code path is in the custom-field atom traversal within the M4A parser. The fix in commit 9ada221 enforces forward progress on sub-atom sizes, breaking out of the traversal when a zero-sized sub-atom is encountered. Refer to Pull Request #326 for the full patch review.
Detection Methods for CVE-2026-104266
Indicators of Compromise
- Python processes importing tinytag that consume 100% of a CPU core for extended periods without producing output.
- M4A files containing a ---- atom with an inner sub-atom whose size field equals zero.
- Application worker threads stuck in the tinytag M4A parsing stack frames across multiple samples.
Detection Strategies
- Inventory Python environments and identify installations of tinytag at versions 2.0.0 through 2.2.x using pip list or software bill of materials tooling.
- Perform static scanning of ingested M4A files for ---- atoms containing zero-length sub-atoms before passing them to the parser.
- Monitor process runtime and CPU usage for metadata-extraction workers and alert on executions exceeding expected parse duration.
Monitoring Recommendations
- Enable per-process CPU and wall-clock timeouts for any service that parses user-supplied audio metadata.
- Collect telemetry on parser crashes, timeouts, and restarts to spot repeated DoS attempts against ingestion pipelines.
- Correlate upload sources with hung worker events to identify abusive clients submitting malformed M4A files.
How to Mitigate CVE-2026-104266
Immediate Actions Required
- Upgrade tinytag to version 2.3.0 or later in all Python environments.
- Audit application dependencies and transitive dependencies for pinned vulnerable versions of tinytag.
- Apply execution timeouts to any process that invokes tinytag on untrusted input until upgrades are deployed.
Patch Information
The issue is fixed in tinytag 2.3.0. The remediation is tracked in GitHub Release 2.3.0 and implemented in commit 9ada221. Review the GitHub Security Advisory GHSA-24cc-9352-h2pg for the full advisory.
Workarounds
- Run tinytag parsing in a sandboxed subprocess with a hard CPU and wall-clock limit using resource.setrlimit or a container runtime constraint.
- Pre-validate M4A files by rejecting any file containing a ---- atom with a zero-sized inner sub-atom before invoking tinytag.
- Isolate metadata extraction workers so that a hung process can be killed without impacting the main application.
# Upgrade tinytag to the patched release
pip install --upgrade 'tinytag>=2.3.0'
# Verify the installed version
python -c "import tinytag; print(tinytag.__version__)"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

