Vulnerabilities in pkg:pypi/phantom-audio
PACKAGEGHSA-52vm-mxx8-f227 is a HIGH (CVSS 7.7) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Phantom libraries in the PyPI ecosystem. The issue involves arbitrary file write and decode-bomb dos via unconfined mcp tool paths. Remediation is available by upgrading affected packages to version 1.3.1.
pkg:pypi/phantom-audio
Vulnerability advisories affecting package pkg:pypi/phantom-audio. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-52vm-mxx8-f227 | - | HIGH | Phantom: Arbitrary file write and decode-bomb DoS via unconfined MCP tool paths |
GHSA-52vm-mxx8-f227 at a Glance
Security Impact
CVSS: 7.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix GHSA-52vm-mxx8-f227
To remediate this vulnerability, upgrade all affected Phantom dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install phantom-audio>=1.3.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show phantom-audio
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-52vm-mxx8-f227, inspect your installed packages using pip:
pip show phantom-audio
Analyze the terminal output to locate any version of Phantom in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.1), your application is affected.
Note: The pip show phantom-audio command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Phantom, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-52vm-mxx8-f227 Affected Phantom Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
phantom-audio
|
PyPI |
< 1.3.1
|
1.3.1
|
References
Frequently Asked Questions
What is GHSA-52vm-mxx8-f227?
Which Phantom versions are affected?
What version fixes GHSA-52vm-mxx8-f227?
Is phantom-audio affected?
What is the CVSS score of GHSA-52vm-mxx8-f227?
What CWE is associated with GHSA-52vm-mxx8-f227?
How can I check PyPI dependencies for GHSA-52vm-mxx8-f227?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-52vm-mxx8-f227",
"modified" : "2026-07-09T13:37:34Z",
"published" : "2026-07-09T13:37:34Z",
"aliases" : [ ],
"summary" : "Phantom: Arbitrary file write and decode-bomb DoS via unconfined MCP tool paths",
"details" : "### Impact\n\nIn Phantom <= 1.3.0, when `PHANTOM_OUTPUT_DIR` was unset (the default), the MCP tools accepted arbitrary absolute output paths with no confinement. Anything able to send tool calls (e.g. an AI agent driving the MCP interface) could **write or overwrite arbitrary files** the process user can write — including shell startup files (`~/.zshrc`) or a Reaper `__startup.lua`, which is effectively local code execution on a developer workstation.\n\nSeparately, the stem-separation and render paths decoded input audio with no size/duration cap (the analysis path was already guarded). A small, highly compressed FLAC/OGG could expand to multi-gigabyte PCM, causing memory-exhaustion DoS, and widened exposure to decoder bugs including libsndfile CVE-2026-37555.\n\n### Patches\nFixed in **1.3.1**:\n- File writes are always confined to `PHANTOM_OUTPUT_DIR` (default `~/.phantom/output`); symlinks resolved and re-verified on the final path.\n- Decode/duration/size guards mirrored onto the separation and render paths (plus ffmpeg `-max_alloc`/`-t`/`-fs`).\n- Atomic `O_CREAT|O_EXCL` output creation in reference matching and symlink-TOCTOU hardening on confined input reads.\n\n### Workarounds\nSet `PHANTOM_OUTPUT_DIR` (and optionally `PHANTOM_AUDIO_DIR`) to dedicated directories before starting the server.\n\n### Credit\nFound during an internal security audit.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "phantom-audio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.3.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/fadelabs/phantom/security/advisories/GHSA-52vm-mxx8-f227"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/fadelabs/phantom"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-400", "CWE-73" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-09T13:37:34Z",
"nvd_published_at" : null
}
}