{"id":"CVE-2021-43811","aliases":["EUVD-2021-0247","GHSA-ggmr-44cv-24pm","PYSEC-2021-848"],"status":"published","title":"Code injection via unsafe YAML loading","description":"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.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.02474,"percentile":0.84754,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-94"],"published":"2021-12-08T23:05:11Z","modified":"2026-10-20T10:55:04Z","exploits":[{"source":"pocgithub","id":"s-index/CVE-2021-43811","title":"s-index/CVE-2021-43811","date":"2022-08-21","url":"https://github.com/s-index/CVE-2021-43811"}],"fixes":[{"ecosystem":"PyPI","package":"sockeye","fixed_in":["2.3.24"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"sockeye","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.24"}]}]},{"source":"osv","ecosystem":"PyPI","package":"sockeye","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.24"}]}],"versions":["1.0.1","1.0.2","1.0.3","1.1.1","1.10.1","1.10.3","1.10.4","1.10.5","1.13.0","1.15.5","1.15.6","1.15.7","1.15.8","1.16.0","1.16.1","1.16.2","1.17.0","1.17.2","1.17.4","1.18.1","1.18.10","1.18.106","1.18.13","1.18.15","1.18.17","1.18.20","1.18.21","1.18.22","1.18.23","1.18.28","1.18.35","1.18.41","1.18.47","1.18.5","1.18.54","1.18.56","1.18.57","1.18.6","1.18.61","1.18.67","1.18.72","1.18.78","1.18.8","1.18.85","1.18.9","1.18.92","1.18.93","1.18.97","1.5.1","1.7.1","1.8.3","2.1.13","2.1.16","2.1.17","2.1.21","2.1.7","2.2.0","2.2.8","2.3.10","2.3.14","2.3.17","2.3.2","2.3.22","2.3.8"]},{"source":"osv","ecosystem":"PyPI","package":"sockeye","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.24"}]}],"versions":["1.0.1","1.0.2","1.0.3","1.1.1","1.10.1","1.10.3","1.10.4","1.10.5","1.13.0","1.15.5","1.15.6","1.15.7","1.15.8","1.16.0","1.16.1","1.16.2","1.17.0","1.17.2","1.17.4","1.18.1","1.18.10","1.18.106","1.18.13","1.18.15","1.18.17","1.18.20","1.18.21","1.18.22","1.18.23","1.18.28","1.18.35","1.18.41","1.18.47","1.18.5","1.18.54","1.18.56","1.18.57","1.18.6","1.18.61","1.18.67","1.18.72","1.18.78","1.18.8","1.18.85","1.18.9","1.18.92","1.18.93","1.18.97","1.5.1","1.7.1","1.8.3","2.1.13","2.1.16","2.1.17","2.1.21","2.1.7","2.2.0","2.2.8","2.3.10","2.3.14","2.3.17","2.3.2","2.3.22","2.3.8"]}],"products":[{"vendor":"amazon","product":"sockeye"},{"vendor":"awslabs","product":"sockeye"}],"references":[{"url":"https://github.com/awslabs/sockeye/security/advisories/GHSA-ggmr-44cv-24pm","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/awslabs/sockeye/pull/964","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/awslabs/sockeye/releases/tag/2.3.24","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43811","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/sockeye/PYSEC-2021-848.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-ggmr-44cv-24pm"},{"url":"https://github.com/awslabs/sockeye","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-43811","title":"Code injection via unsafe YAML loading","description":"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.","status":"published","published":"2021-12-08T23:05:11Z","modified":"2024-08-04T04:03:08.684Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:32:56.689433Z"}],"euvd":[{"id":"EUVD-2021-0247","description":"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.","status":"published","published":"2021-12-08T23:05:11Z","modified":"2024-08-04T04:03:08Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T03:24:13.772922Z"}],"ghsa":[{"id":"GHSA-ggmr-44cv-24pm","title":"Code injection via unsafe YAML loading","description":"### Impact\nSockeye 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.\n\nAn 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.\n\n### Patches\nThe issue is fixed in version 2.3.24 and above by #964.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [awslabs/sockeye](https://github.com/awslabs/sockeye)\n* Email us at [sockeye-dev](mailto:sockeye-dev@amazon.com)\n\n### Attribution\nThis vulnerability was reported by Masatoshi Yoshizawa of yamory Security Team.","status":"published","published":"2021-12-09T18:35:22Z","modified":"2024-10-25T14:50:22Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:38:13.09489Z"}],"nvd":[{"id":"CVE-2021-43811","description":"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.","status":"published","published":"2021-12-08T23:15:08.123Z","modified":"2026-06-17T04:11:29.22Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:07:02.189991Z"}],"osv":[{"id":"CVE-2021-43811","description":"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.","status":"published","published":"2021-12-08T23:15:08.123Z","modified":"2026-10-20T10:55:04.911745823Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:21.877444Z"},{"id":"GHSA-ggmr-44cv-24pm","title":"Code injection via unsafe YAML loading","description":"### Impact\nSockeye 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.\n\nAn 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.\n\n### Patches\nThe issue is fixed in version 2.3.24 and above by #964.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [awslabs/sockeye](https://github.com/awslabs/sockeye)\n* Email us at [sockeye-dev](mailto:sockeye-dev@amazon.com)\n\n### Attribution\nThis vulnerability was reported by Masatoshi Yoshizawa of yamory Security Team.","status":"published","published":"2021-12-09T18:35:22Z","modified":"2026-07-08T06:29:38.266199338Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:47.822182Z"},{"id":"PYSEC-2021-848","description":"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.","status":"published","published":"2021-12-08T23:15:00Z","modified":"2023-11-08T04:07:13.113944Z","updated_at":"2026-11-02T15:52:53.119977Z"}]}}
