# CVE-2021-23338: Deserialization of Untrusted Data

- Severity: Medium 6.6 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.94%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-15T15:50:15.795Z
- Modified: 2026-06-17T03:38:34.940Z
- Also known as: GHSA-hjr4-fhgp-23g9, PYSEC-2021-86, SNYK-PYTHON-QLIB-1054635
- Weaknesses: CWE-94, CWE-502
- Assigned by: snyk

## Description

This affects all versions of package qlib. The workflow function in cli part of qlib was using an unsafe YAML load function.

(As written by CVE List.)

## Affected

- qlib: before unspecified
- pyqlib (PyPI): before 0.7.0; before 0.6.3
- microsoft qlib: no versions given

## Every score

- snyk: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C`
- GitHub: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/418sec/huntr/pull/1329> (exploit, patch, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-PYTHON-QLIB-1054635> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23338> (advisory)
- <https://github.com/microsoft/qlib> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyqlib/PYSEC-2021-86.yaml> (web)
- <https://security.snyk.io/vuln/SNYK-PYTHON-PYQLIB-1085990> (web)
- <https://github.com/advisories/GHSA-hjr4-fhgp-23g9> (advisory)

## Sources

- CVE List: [CVE-2021-23338](https://www.cve.org/CVERecord?id=CVE-2021-23338), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-hjr4-fhgp-23g9](https://github.com/advisories/GHSA-hjr4-fhgp-23g9), CC-BY-4.0, modified 2024-10-14
- NVD: [CVE-2021-23338](https://nvd.nist.gov/vuln/detail/CVE-2021-23338), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-86](https://osv.dev/vulnerability/PYSEC-2021-86), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2021-23338 · Whole record: https://cve.day/CVE-2021-23338.json · Rebuilt by cve.day 2026-11-25T22:57:59.951Z
