Advisory

GHSA-xpm8-98mx-h4c5

Also known as: CVE-2017-16615, PYSEC-2017-19

Summary

Unsafe deserialization in MLAlchemy

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2018-07-13 16:01 UTC
Modified
2025-02-14 05:28 UTC

Affected packages and fixes

mlalchemy

PyPI · All systems

Affected

  • introduced 0, fixed 0.2.2 (ecosystem)

Fixed versions

0.2.2

Fix

  • Fixed version 0.2.2
    pip install --upgrade mlalchemy==0.2.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences