CVE-2021-23338 Deserialization of Untrusted Data
Attackers can execute arbitrary code via unsafe YAML deserialization in the qlib library's CLI workflow function.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-23338?
CVE-2021-23338 is a medium-severity unsafe deserialization vulnerability in qlib, published on 15 Feb 2021. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
This affects all versions of package qlib. The workflow function in cli part of qlib was using an unsafe YAML load function.
Weakness: CWE-502
Which versions are affected by CVE-2021-23338?
3 open source packages ship an affected version, including pyqlib. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pyqlib PyPI | All versions | 0.6.3 |
pyqlib PyPI | All versions | 0.7.0 |
pyqlib PyPI | All versions | 0.7.0 |
Products include Microsoft Qlib.
How do I fix CVE-2021-23338?
Upgrade pyqlib to a fixed version for your release line: 0.6.3 or 0.7.0.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2021-23338 being exploited?
There is no known exploitation of CVE-2021-23338 in the wild and no public exploit code.
Sources
Also known as GHSA-hjr4-fhgp-23g9, PYSEC-2021-86, SNYK-PYTHON-QLIB-1054635.