Unsafe pyyaml load usage in PyAnyAPI
Critical severity
GitHub Reviewed
Published
May 13, 2022
to the GitHub Advisory Database
•
Updated Oct 21, 2024
Description
Published by the National Vulnerability Database
Nov 8, 2017
Published to the GitHub Advisory Database
May 13, 2022
Reviewed
May 26, 2022
Last updated
Oct 21, 2024
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 wheresafe_load
should have been used. An attacker can insert Python into loaded YAML to trigger this vulnerability.References