Vulnerabilities in pkg:pypi/phantom-audio

PACKAGE
Advisory Summary

GHSA-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/phantom-audio

1 Known Advisory Record(s)

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

CVE Identifier N/A
GHSA Identifier GHSA-52vm-mxx8-f227
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Phantom
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

phantom-audio fixed: 1.3.1
pip install phantom-audio>=1.3.1
Verify Direct and Transitive Dependencies

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

### Impact In 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. Separately, 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. ### Patches Fixed in **1.3.1**: - File writes are always confined to `PHANTOM_OUTPUT_DIR` (default `~/.phantom/output`); symlinks resolved and re-verified on the final path. - Decode/duration/size guards mirrored onto the separation and render paths (plus ffmpeg `-max_alloc`/`-t`/`-fs`). - Atomic `O_CREAT|O_EXCL` output creation in reference matching and symlink-TOCTOU hardening on confined input reads. ### Workarounds Set `PHANTOM_OUTPUT_DIR` (and optionally `PHANTOM_AUDIO_DIR`) to dedicated directories before starting the server. ### Credit Found during an internal security audit.

GHSA-52vm-mxx8-f227 Affected Phantom Versions

1 component(s)
Fixed Versions:
1.3.1
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?
GHSA-52vm-mxx8-f227 is a security vulnerability in Phantom involving Arbitrary file write and decode-bomb DoS via unconfined MCP tool paths under CWE-400: Uncontrolled Resource Consumption.
Which Phantom versions are affected?
Affected versions include releases prior to 1.3.1 across affected packages: phantom-audio.
What version fixes GHSA-52vm-mxx8-f227?
Upgrading to 1.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is phantom-audio affected?
Yes, phantom-audio is affected in releases prior to 1.3.1. Upgrade your dependency to 1.3.1 or later.
What is the CVSS score of GHSA-52vm-mxx8-f227?
GHSA-52vm-mxx8-f227 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with GHSA-52vm-mxx8-f227?
GHSA-52vm-mxx8-f227 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check PyPI dependencies for GHSA-52vm-mxx8-f227?
Run the dependency tree command: 'pip show phantom-audio'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}