Skip to content

Unsafe pyyaml load usage in PyAnyAPI

Critical severity GitHub Reviewed Published May 13, 2022 to the GitHub Advisory Database • Updated Sep 2, 2023

Package

pip pyanyapi (pip)

Affected versions

< 0.6.1

Patched versions

0.6.1

Description

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.

References

Published by the National Vulnerability Database Nov 8, 2017
Published to the GitHub Advisory Database May 13, 2022
Reviewed May 26, 2022
Last updated Sep 2, 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

CVE ID

CVE-2017-16616

GHSA ID

GHSA-vg8g-jpm9-jh8r

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.