CVE-2021-43811

Code injection via unsafe YAML loading

HIGH
7.8
CVSS Score
Published: December 8, 2021 at 11:05 PM UTC
Updated: June 17, 2026 at 04:11 AM UTC
2 products affected across 2 vendorsSockeyeSockeye

Using sockeye by awslabs?

Get instant alerts when new vulnerabilities affect sockeye - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2.3.24
Affected range stops below 2.3.24, so it looks safe — our inference, not a vendor statement
v < 2.3.24
Affected range stops below 2.3.24, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

References (3)

x_refsource_MISCPatchThird Party Advisory
https://github.com/awslabs/sockeye/pull/964
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/awslabs/sockeye/releases/tag/2.3.24

CVSS

7.8HIGHGitHub_M
Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-94

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card