# CVE-2021-43811: Code injection via unsafe YAML loading

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-12-08 · Modified: 2024-08-04
- Aliases: GHSA-ggmr-44cv-24pm, PYSEC-2021-848
- Record: https://cvemate.com/vulnerability/CVE-2021-43811 · JSON: https://cvemate.com/vulnerability/CVE-2021-43811/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 2.474%, percentile 85.072%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- amazon sockeye: \< 2.3.24
- awslabs sockeye: \< 2.3.24
- PyPI sockeye (PyPI): \< 2.3.24

## References

- <https://github.com/awslabs/sockeye/security/advisories/GHSA-ggmr-44cv-24pm>
- <https://github.com/awslabs/sockeye/pull/964>
- <https://github.com/awslabs/sockeye/releases/tag/2.3.24>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43811>
- <https://github.com/awslabs/sockeye>
- <https://github.com/pypa/advisory-database/tree/main/vulns/sockeye/PYSEC-2021-848.yaml>

---

Data as of 2026-12-05T10:02:30.161Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
