GHSA-xpm8-98mx-h4c5

Suggest an improvement
Source
https://github.com/advisories/GHSA-xpm8-98mx-h4c5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-xpm8-98mx-h4c5/GHSA-xpm8-98mx-h4c5.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-xpm8-98mx-h4c5
Aliases
Published
2018-07-13T16:01:07Z
Modified
2024-12-04T05:34:08.680848Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Unsafe deserialization in MLAlchemy
Details

An exploitable vulnerability exists in the YAML parsing functionality in the parseyamlquery method in parser.py in MLAlchemy before 0.2.2. When processing YAML-Based queries for data, a YAML parser can execute arbitrary Python commands resulting in command execution because load is used where safe_load should have been used. An attacker can insert Python into loaded YAML to trigger this vulnerability.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T22:03:55Z"
}
References

Affected packages

PyPI / mlalchemy

Package

Affected ranges

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

Affected versions

0.*

0.1.0
0.1.1
0.1.2
0.1.3
0.2.0
0.2.1

Ecosystem specific

{
    "affected_functions": [
        "mlalchemy.parser.parse_yaml_query"
    ]
}