GHSA-ggmr-44cv-24pm

Suggest an improvement
Source
https://github.com/advisories/GHSA-ggmr-44cv-24pm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-ggmr-44cv-24pm/GHSA-ggmr-44cv-24pm.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-ggmr-44cv-24pm
Aliases
Published
2021-12-09T18:35:22Z
Modified
2024-10-25T15:00:55.433513Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Code injection via unsafe YAML loading
Details

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: * Open an issue in awslabs/sockeye * Email us at sockeye-dev

Attribution

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

Database specific
{
    "nvd_published_at": "2021-12-08T23:15:00Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-12-08T23:14:41Z"
}
References

Affected packages

PyPI / sockeye

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.24

Affected versions

1.*

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.*

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