← Back to overview

CVE-2026-79784 describes a critical arbitrary code execution vulnerability in the Vocos Python library, a neural vocoder used in AI/ML workflows. The vulnerability exists in the instantiate_class function within vocos/pretrained.py, which loads a class path from a configuration file without any allowlist or restriction on which class may be named. The function uses Python's __import__ and getattr to dynamically import and instantiate any callable, passing user-controlled arguments. The Vocos.from_pretrained method downloads a remote config.yaml from a Hugging Face repository specified by the caller and passes it directly to from_hparams, meaning loading a model from an untrusted repository results in execution of arbitrary code chosen by the repository owner. This is distinct from the torch.load deserialization risk, which is mitigated in newer PyTorch versions. The attack surface is significant for any user or pipeline that loads Vocos models from third-party or community Hugging Face repositories. No allowlist or sandboxing constrains the class path resolution, making this a straightforward remote code execution vector during model loading.

Affected products

  • Vocos

Related CVE's

  • CVE-2026-79784

Categories

  • Emerging Technologies
  • Supply Chain & Dependencies