CVE-2021-43811 json
Code injection via unsafe YAML loading
published 2021-12-08 4 y ago modified 2026-07-08 4 mo ago also GHSA-ggmr-44cv-24pm , PYSEC-2021-848 , EUVD-2021-0247
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi sockeye 2.3.24
- amazon sockeye 2.3.24
- github.com/awslabs/sockeye#964 pull request
- github.com/awslabs/sockeye/releases/tag/2.3.24 release
Exploit prediction
2.47% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | sockeye | <2.3.24 |
2.3.24 |
Affected products
- awslabs sockeye
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/awslabs/sockeye/pull/964
web, patch, third-party-advisory
-
github.com
/awslabs/sockeye/security/advisories/GHSA-ggmr-44cv-24pm
web, third-party-advisory, advisory
-
github.com
/awslabs/sockeye/releases/tag/2.3.24
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-43811
advisory
-
github.com
/awslabs/sockeye
package
-
github.com
/pypa/advisory-database/tree/main/vulns/sockeye/PYSEC-2021-848.yaml
web
Sources
- CVE List CVE-2021-43811
- GitHub Advisory GHSA-ggmr-44cv-24pm
- NVD CVE-2021-43811
- OSV PYSEC-2021-848
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.