{"id":"CVE-2021-39207","published":"2021-09-10T22:20:09Z","modified":"2024-08-04T01:58:18Z","title":"Deserialization of Untrusted Data in parlai","vendor":"facebookresearch","product":"ParlAI","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01794,"percentile":0.78963,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/facebookresearch/ParlAI/security/advisories/GHSA-m87f-9fvv-2mgg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/facebookresearch/ParlAI/commit/4374fa2aba383db6526ab36e939eb1cf8ef99879","tags":["x_refsource_MISC"]},{"url":"https://github.com/facebookresearch/ParlAI/commit/507d066ef432ea27d3e201da08009872a2f37725","tags":["x_refsource_MISC"]}],"priority":{"score":26.7,"factors":[{"name":"EPSS percentile","points":15.79},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"facebookresearch","affectedVersions":[{"vendor":"facebookresearch","product":"ParlAI","versions":["< 1.1.0"]}],"affected":[{"ecosystem":"PyPI","package":"parlai","vulnerableRanges":["<1.1.0"],"patched":["1.1.0"],"from":["GHSA-m87f-9fvv-2mgg","PYSEC-2021-330","PYSEC-2021-334"],"provenance":"source"}],"summary":{"text":"The ParlAI framework from facebookresearch contains an unsafe YAML loading flaw, classified as deserialization of untrusted data, in which the package uses an unsafe loader that can be abused through crafted YAML input. An attacker with low-privilege access over the network can achieve arbitrary code execution, though exploitation is conditioned on high attack complexity and requires that the attacker's crafted data be processed by the affected loader, with the impact spanning beyond the vulnerable component.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:31:02Z"},"euvd":{"id":"EUVD-2021-34767","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/164136/Facebook-ParlAI-1.0.0-Code-Execution-Deserialization.html"],"lineage":{"familyId":"fam-meta-parlai-cve-2021-24040","parents":[{"from":"CVE-2021-24040","to":"CVE-2021-39207","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-m87f-9fvv-2mgg","via":"reference","url":"https://github.com/facebookresearch/ParlAI/security/advisories/GHSA-m87f-9fvv-2mgg"},{"kind":"osv-related","provenance":"source","id":"GHSA-mwgj-7x7j-6966","via":"reference","url":"https://github.com/facebookresearch/ParlAI/security/advisories/GHSA-m87f-9fvv-2mgg"}]}]}}