CVE-2021-39207
HIGH 8.8CVSS 3.1Deserialization of Untrusted Data in parlai
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.
- Published
- 10 Sep 2021
- Last modified
- 9 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- CVE-2021-24040GHSA-m87f-9fvv-2mggGHSA-mwgj-7x7j-6966PYSEC-2021-330PYSEC-2021-334
- Sources
- NVDJSONOSV GHSA-m87f-9fvv-2mggJSONOSV GHSA-mwgj-7x7j-6966JSONOSV PYSEC-2021-330JSONOSV PYSEC-2021-334JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | parlaicpe:2.3:a:facebook:parlai:*:*:*:*:*:*:*:* |
< 1.1.0 | 1.1.0 | |
| OSV | PyPI | parlai | < 1.1.0 | 1.1.0 |
References
- https://github.com/facebookresearch/ParlAI/commit/4374fa2aba383db6526ab36e939eb1cf8ef99879 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/facebookresearch/ParlAI/commit/507d066ef432ea27d3e201da08009872a2f37725 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/facebookresearch/ParlAI/security/advisories/GHSA-m87f-9fvv-2mgg · Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-39207 · ADVISORY
- https://github.com/advisories/GHSA-mwgj-7x7j-6966 · ADVISORY
- https://github.com/facebookresearch/ParlAI · PACKAGE
- https://github.com/facebookresearch/ParlAI/releases/tag/v1.1.0 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/parlai/PYSEC-2021-330.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/parlai/PYSEC-2021-334.yaml · WEB
- http://packetstormsecurity.com/files/164136/Facebook-ParlAI-1.0.0-Code-Execution-Deserialization.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-24040 · ADVISORY
- https://github.com/facebookresearch/ParlAI/pull/3402 · WEB
- https://github.com/facebookresearch/ParlAI/pull/3429 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 10 Sep 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Sep 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Sep 2021)