CVE-2021-43811
HIGH 7.8CVSS 3.1Code injection via unsafe YAML loading
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.
- Published
- 8 Dec 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-ggmr-44cv-24pmPYSEC-2021-848
- Sources
- NVDJSONOSV GHSA-ggmr-44cv-24pmJSONOSV PYSEC-2021-848JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | amazon | sockeyecpe:2.3:a:amazon:sockeye:*:*:*:*:*:python:*:* |
< 2.3.24 | 2.3.24 |
| OSV | PyPI | sockeye | < 2.3.24 | 2.3.24 |
References
- https://github.com/awslabs/sockeye/pull/964 · Patch, Third Party Advisory, WEB
- https://github.com/awslabs/sockeye/releases/tag/2.3.24 · Release Notes, Third Party Advisory, WEB
- https://github.com/awslabs/sockeye/security/advisories/GHSA-ggmr-44cv-24pm · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-43811 · ADVISORY
- https://github.com/awslabs/sockeye · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/sockeye/PYSEC-2021-848.yaml · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Dec 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Dec 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Dec 2021)