Before 0.47.2, the Demucs loader used torch.load with weights_only=False on external or shared-directory checkpoint files. A malicious serialized checkpoint could call arbitrary pickle globals during loading, executing under the audio-separation process account before normal inference. Maintainer tests blocked a controlled os.system payload while seven…
Inspect the ClaimsCase · DiggingBeagle record
Audio-separator loaded executable model checkpoints through unsafe PyTorch pickle
Maintainer tests blocked a controlled os.
Published by DiggingBeagle:
audio-separator before 0.47.2 and a malicious checkpoint selected or placed in a writable shared model directory.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
The cited primary source supports the stated mechanism and scoped outcome. Impact band remains unrated because no calibrated victim exposure or severity distribution is established by the cited evidence.
Assessed Nov 22, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-2026-NOV22-AUDIO-SEPARATOR-PICKLE-MECHANISM · CLM-2026-NOV22-AUDIO-SEPARATOR-PICKLE-SCOPE · audio-separator patch v0.47.2 restricts unsafe Demucs checkpoint loading
At a glance
Treating model weights as passive data is unsafe when the loader invokes Python object deserialization. The fixes address explicit checkpoint families, and the recorded Claude Code contribution is to remediation, not proof that AI autonomously found the flaw.
Read the implicationsNo known customer compromise is documented, and the optional shared-directory threat requires a file to be placed or fetched. The remediation does not certify every third-party checkpoint loader.
Limits and uncertaintyFull account
Before 0.47.2, the Demucs loader used torch.load with weights_only=False on external or shared-directory checkpoint files. A malicious serialized checkpoint could call arbitrary pickle globals during loading, executing under the audio-separation process account before normal inference.
Maintainer tests blocked a controlled os.system payload while seven official Demucs checkpoints retained matched outputs. The same PR tightens VR, MDXC, RoFormer and mixer loads and removes a separate unsafe fallback. The code uses Claude Code in remediation metadata, not as proof of discovery. The critical boundary is untrusted ML weight artifacts crossing into executable Python object deserialization before inference.
The documented repair is upgrade 0.47.2, use restricted checkpoint deserialization and verify model artifact origin before loading. No known customer compromise is documented, and the optional shared-directory threat requires a file to be placed or fetched. The remediation does not certify every third-party checkpoint loader.
Mechanism and trust boundary
- 01
Choose or replace a checkpoint
An audio-separator deployment selects a Demucs .th file from a download or a writable shared model directory; attacker control of that artifact is a prerequisite.
Boundary: External model-file provenance before inference
- 02
Deserialize with unrestricted pickle
Before 0.47.2 the loader passed weights_only=False to torch.load, allowing serialized Python globals to execute in the loading process.
Boundary: Model artifact interpreted as executable Python operations
- 03
Execute within loader privileges
The maintainers rejected a controlled malicious os.system checkpoint after switching to restricted loading and verified seven official Demucs models still produced matching outputs.
Boundary: Host process execution, demonstrated in a local test rather than victim infection
Claims & evidence
CLM-2026-NOV22-AUDIO-SEPARATOR-PICKLE-SCOPEMaintainer tests blocked a controlled os.system payload while seven official Demucs checkpoints retained matched outputs. The same PR tightens VR, MDXC, RoFormer and mixer loads and removes a separate unsafe fallback. The code uses Claude Code in remediation metadata, not as proof of discovery.supported
Basis: reported finding
- supportsaudio-separator patch v0.47.2 restricts unsafe Demucs checkpoint loadingpatch commit artifact
Primary advisory or study: reproduction, results and limitations
CLM-2026-NOV22-AUDIO-SEPARATOR-PICKLE-MECHANISMBefore 0.47.2, the Demucs loader used torch.load with weights_only=False on external or shared-directory checkpoint files. A malicious serialized checkpoint could call arbitrary pickle globals during loading, executing under the audio-separation process account before normal inference.supported
Basis: reported finding
- supportsaudio-separator patch v0.47.2 restricts unsafe Demucs checkpoint loadingpatch commit artifact
Primary advisory or study: technical mechanism and affected component
- supportsaudio-separator patch v0.47.2 restricts unsafe Demucs checkpoint loadingpatch commit artifact
PR #316: Demucs torch.load weights_only flag, malicious os.system test and seven official checkpoint regression tests
Implications
Treating model weights as passive data is unsafe when the loader invokes Python object deserialization. The fixes address explicit checkpoint families, and the recorded Claude Code contribution is to remediation, not proof that AI autonomously found the flaw.
Controls and mitigations
- upgrade 0.47.2, use restricted checkpoint deserialization and verify model artifact origin before loading
Unknowns and contradictions
- No known customer compromise is documented, and the optional shared-directory threat requires a file to be placed or fetched. The remediation does not certify every third-party checkpoint loader.
Sources and citation
Material revision history
- Nov 22, 2026 · Published version · first publication · revision 275