VDB
Sign up
—

PYSEC-2021-848

Quick fix

PYSEC-2021-848 — sockeye: upgrade to the fixed version with the command below.

pip install --upgrade 'sockeye>=2.3.24'

Details

Sockeye is an open-source sequence-to-sequence framework for Neural Machine Translation built on PyTorch. Sockeye uses YAML to store model and data configurations on disk. Versions below 2.3.24 use unsafe YAML loading, which can be made to execute arbitrary code embedded in config files. An attacker can add malicious code to the config file of a trained model and attempt to convince users to download and run it. If users run the model, the embedded code will run locally. The issue is fixed in version 2.3.24.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/sockeye
Introduced in: 0Fixed in: 2.3.24
Fixpip install --upgrade 'sockeye>=2.3.24'

References