Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. sockeye
  4. ›
  5. CVE-2021-43811

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

December 9, 2021 (updated October 25, 2024)

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.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2021-43811 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.24

Fixed versions

  • 2.3.24

Solution

Upgrade to version 2.3.24 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/sockeye/CVE-2021-43811.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.