
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (CVE-2021-23338) affects all versions of the qlib package, which is an AI-oriented quantitative investment platform. The vulnerability was discovered in the workflow function within the CLI component of qlib, where an unsafe YAML load function was being used. The issue was disclosed on December 28, 2020, and published on February 15, 2021 (NVD, Snyk).
The vulnerability is classified as a Deserialization of Untrusted Data (CWE-502) issue. The workflow function in the CLI part of qlib was using an unsafe YAML load function, which could allow for arbitrary code execution. The vulnerability stems from the improper handling of YAML deserialization, where the code uses the potentially dangerous load() function instead of the safer safe_load() alternative (Huntr).
This vulnerability could allow attackers to execute arbitrary code through specially crafted YAML files. The deserialization of untrusted data could lead to remote code execution, potentially compromising the system running the affected qlib package (Snyk).
A proof-of-concept exploit exists that demonstrates the vulnerability. The exploit involves creating a malicious YAML file that, when processed by the workflow function, can execute arbitrary system commands. The vulnerability has a relatively low EPSS score of 0.19% (58th percentile), indicating a moderate likelihood of exploitation in the wild (Snyk, Huntr).
The recommended mitigation is to use the safe_load() function instead of the unsafe load() function when handling YAML data. This safer alternative restricts the deserialization of potentially dangerous YAML constructs that could lead to code execution (Huntr).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."