Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1nZ21yLTQ0Y3YtMjRwbc0Z-w

Code injection via unsafe YAML loading

Impact

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.

Patches

The issue is fixed in version 2.3.24 and above by #964.

For more information

If you have any questions or comments about this advisory:

Attribution

This vulnerability was reported by Masatoshi Yoshizawa of yamory Security Team.

Permalink: https://github.com/advisories/GHSA-ggmr-44cv-24pm
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1nZ21yLTQ0Y3YtMjRwbc0Z-w
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 2 years ago
Updated: over 1 year ago


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

Identifiers: GHSA-ggmr-44cv-24pm, CVE-2021-43811
References: Repository: https://github.com/awslabs/sockeye
Blast Radius: 4.7

Affected Packages

pypi:sockeye
Dependent packages: 0
Dependent repositories: 4
Downloads: 1,400 last month
Affected Version Ranges: < 2.3.24
Fixed in: 2.3.24
All affected versions: 1.0.1, 1.0.2, 1.0.3, 1.1.1, 1.5.1, 1.7.1, 1.8.3, 1.10.1, 1.10.3, 1.10.4, 1.10.5, 1.13.0, 1.15.5, 1.15.6, 1.15.7, 1.15.8, 1.16.0, 1.16.1, 1.16.2, 1.17.0, 1.17.2, 1.17.4, 1.18.1, 1.18.5, 1.18.6, 1.18.8, 1.18.9, 1.18.10, 1.18.13, 1.18.15, 1.18.17, 1.18.20, 1.18.21, 1.18.22, 1.18.23, 1.18.28, 1.18.35, 1.18.41, 1.18.47, 1.18.54, 1.18.56, 1.18.57, 1.18.61, 1.18.67, 1.18.72, 1.18.78, 1.18.85, 1.18.92, 1.18.93, 1.18.97, 1.18.106, 2.1.7, 2.1.13, 2.1.16, 2.1.17, 2.1.21, 2.2.0, 2.2.8, 2.3.2, 2.3.8, 2.3.10, 2.3.14, 2.3.17, 2.3.22
All unaffected versions: 2.3.24, 3.0.0, 3.0.4, 3.0.7, 3.0.10, 3.0.13, 3.0.15, 3.1.0, 3.1.3, 3.1.4, 3.1.7, 3.1.9, 3.1.10, 3.1.12, 3.1.14, 3.1.27, 3.1.29, 3.1.31, 3.1.33, 3.1.34