9.8critical
Deserialization of Untrusted Data in parlai
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 17.4% (higher than 98% of CVEs)
- Published
- Last changed
- Assigned by
- Also known as
- GHSA-m87f-9fvv-2mggGHSA-mwgj-7x7j-6966PYSEC-2021-330PYSEC-2021-334
Description
Due to use of unsafe YAML deserialization logic, an attacker with the ability to modify local YAML configuration files could provide malicious input, resulting in remote code execution or similar risks. This issue affects ParlAI prior to v1.1.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Facebook ParlAI | from unspecified before 1.1.0, before 1.1.0 Not affected: from 1.1.0 before unspecified | CVE List, NVD |
| parlai (PyPI) | before 1.1.0, before 507d066ef432ea27d3e201da08009872a2f37725, before 4374fa2aba383db6526ab36e939eb1cf8ef99879 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub | 8.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:L |
| GitHub | medium rating | |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
Due to use of unsafe YAML deserialization logic, an attacker with the ability to modify local YAML configuration files could provide malicious input, resulting in remote code execution or similar risks. This issue affects ParlAI prior to v1.1.0.
GitHub Advisory Database
Impact
Due to use of unsafe YAML deserialization logic, an attacker with the ability to modify local YAML configuration files could provide malicious input, resulting in remote code execution or similar risks.
Patches
The issue can be patched by upgrading to v1.1.0 or later. It can also be patched by replacing YAML deserialization with equivalent safe_load calls.
References
NVD (es)
Debido al uso de una lógica de deserialización de YAML no segura, un atacante con la capacidad de modificar los archivos de configuración YAML locales podría proporcionar una entrada maliciosa, resultando en una ejecución de código remota o riesgos similares. Este problema afecta a ParlAI versiones anteriores a v1.1.0
PyPA Advisory Database
parlai is a framework for training and evaluating AI models on a variety of openly available dialogue datasets. In affected versions the package is vulnerable to YAML deserialization attack caused by unsafe loading which leads to Arbitary code execution. This security bug is patched by avoiding unsafe loader users should update to version above v1.1.0. If upgrading is not possible then users can change the Loader used to SafeLoader as a workaround. See commit 507d066ef432ea27d3e201da08009872a2f37725 for details.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-24040 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m87f-9fvv-2mgg changed 2026-07-08 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-mwgj-7x7j-6966 changed 2024-12-04 | CC-BY-4.0 |
| NVD | CVE-2021-24040 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-330 changed 2026-07-09 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2021-334 changed 2023-11-08 | CC-BY-4.0 |