Advisory

GHSA-vg8g-jpm9-jh8r

Also known as: CVE-2017-16616, PYSEC-2017-23

Summary

Unsafe pyyaml load usage in PyAnyAPI

Details

An exploitable vulnerability exists in the YAML parsing functionality in the YAMLParser method in Interfaces.py in PyAnyAPI before 0.6.1. 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
2022-05-13 01:44 UTC
Modified
2024-10-21 21:01 UTC

Affected packages and fixes

pyanyapi

PyPI · All systems

Affected

  • introduced 0, fixed 0.6.1 (ecosystem)

Fixed versions

0.6.1

Fix

  • Fixed version 0.6.1
    pip install --upgrade pyanyapi==0.6.1

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