PT-2021-23951 · Sockeye · Sockeye
Masatoshi Yoshizawa
·
Published
2021-12-08
·
Updated
2022-08-22
·
CVE-2021-43811
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions:
Sockeye versions prior to 2.3.24
Description:
Sockeye is an open-source sequence-to-sequence framework for Neural Machine Translation built on PyTorch. It uses YAML to store model and data configurations on disk. The issue arises from unsafe YAML loading in versions below 2.3.24, which can 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.
Recommendations:
For versions prior to 2.3.24, update to version 2.3.24 or above to fix the issue. As a temporary workaround, consider avoiding the use of config files from untrusted sources and restricting the execution of models with potentially malicious config files.
Exploit
Fix
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Sockeye