CVE-2021-43811: Code injection via unsafe YAML loading
Vulnerability summary
CVE-2021-43811 is a high (CVSS 7.8) Improper Control of Generation of Code vulnerability in amazon sockeye. EPSS estimates a 2.47% chance of exploitation in the next 30 days, higher than 85% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 08-12-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · PypiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.47%
Chance of exploitation in the next 30 days
Percentile
85%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.47% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Amazon1 product
- sockeye< 2.3.24
Awslabs1 product
- sockeye< 2.3.24
PyPI1 product
- sockeye< 2.3.24
3 vendors · 3 products
References
6 links- github.com/awslabs/sockeye/security/advisories/GHSA-ggmr-44cv-24pmX Refsource CONFIRMWEBAdvisoryThird Party Advisory
- github.com/awslabs/sockeyePACKAGE