mlalchemy@0.1.3

Library for converting YAML/JSON to SQLAlchemy SELECT queries

  • latest version

    0.2.2

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    9 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the mlalchemy package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Arbitrary Code Execution

    mlalchemy is a library for converting YAML/JSON to SQLAlchemy SELECT queries.

    Affected versions of the package are vulnerable to Arbitrary Code Execution. 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.

    How to fix Arbitrary Code Execution?

    Upgrade mlalchemy to version 0.2.2 or higher.

    [,0.2.2)