Skip to content

Unsafe deserialization in MLAlchemy

Critical severity GitHub Reviewed Published Jul 13, 2018 to the GitHub Advisory Database • Updated Aug 23, 2023

Package

pip MLAlchemy (pip)

Affected versions

< 0.2.2

Patched versions

0.2.2

Description

An exploitable vulnerability exists in the YAML parsing functionality in the parse_yaml_query 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.

References

Published to the GitHub Advisory Database Jul 13, 2018
Reviewed Jun 16, 2020
Last updated Aug 23, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

No CWEs

CVE ID

CVE-2017-16615

GHSA ID

GHSA-xpm8-98mx-h4c5
Checking history
See something to contribute? Suggest improvements for this vulnerability.