{"id":"CVE-2021-39207","aliases":["CVE-2021-39207","GHSA-m87f-9fvv-2mgg","GHSA-mwgj-7x7j-6966","PYSEC-2021-330","PYSEC-2021-334"],"related":["CVE-2021-24040"],"kind":"vulnerability","state":"published","title":"Deserialization of Untrusted Data in parlai","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nDue 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.\n\n### Patches\nThe 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.\n\n### References\n\n- https://github.com/facebookresearch/ParlAI/commit/507d066ef432ea27d3e201da08009872a2f37725\n- https://github.com/facebookresearch/ParlAI/commit/4374fa2aba383db6526ab36e939eb1cf8ef99879\n- https://anon-artist.github.io/blogs/blog3.html","format":"markdown","source":"ghsa"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"parlai es un marco de trabajo para entrenar y evaluar modelos de IA en una variedad de conjuntos de datos de diálogo disponibles abiertamente. En las versiones afectadas el paquete es vulnerable a un ataque de deserialización de YAML causado por una carga no segura que conlleva a una ejecución de código arbitrario. Este bug de seguridad es parcheado al evitar una carga no segura, los usuarios deben actualizar a una versión superior a v1.1.0. Si la actualización no es posible, entonces los usuarios pueden cambiar el Cargador usado a SafeLoader como solución. Consulte el commit 507d066ef432ea27d3e201da08009872a2f37725 para más detalles","source":"nvd"}],"published":"2021-09-10T22:15:00.000Z","modified":"2026-07-09T16:45:06.451Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","score":8.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"< 1.1.0","status":"affected"}],"vendor":"facebookresearch","product":"ParlAI","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.1.0"}],"ecosystem":"PyPI","package":"parlai","purl":"pkg:pypi/parlai","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.1.0"}],"ecosystem":"PyPI","package":"parlai","purl":"pkg:pypi/parlai","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.1.0"}],"vendor":"facebook","product":"parlai","cpe":"cpe:2.3:a:facebook:parlai:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.1.0"}],"ecosystem":"PyPI","package":"parlai","purl":"pkg:pypi/parlai","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"507d066ef432ea27d3e201da08009872a2f37725"},{"type":"git","status":"affected","fixed":"4374fa2aba383db6526ab36e939eb1cf8ef99879"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.1.0"}],"ecosystem":"PyPI","package":"parlai","purl":"pkg:pypi/parlai","repo":"https://github.com/facebookresearch/ParlAI","source":"pysec"}],"references":[{"url":"https://github.com/facebookresearch/ParlAI/security/advisories/GHSA-m87f-9fvv-2mgg","tags":["advisory","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/facebookresearch/ParlAI/commit/4374fa2aba383db6526ab36e939eb1cf8ef99879","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/facebookresearch/ParlAI/commit/507d066ef432ea27d3e201da08009872a2f37725","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39207","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-mwgj-7x7j-6966","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/facebookresearch/ParlAI","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/facebookresearch/ParlAI/releases/tag/v1.1.0","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/parlai/PYSEC-2021-330.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/parlai/PYSEC-2021-334.yaml","tags":["web"],"sources":["ghsa"]},{"url":"http://packetstormsecurity.com/files/164136/Facebook-ParlAI-1.0.0-Code-Execution-Deserialization.html","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24040","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/facebookresearch/ParlAI/pull/3402","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/facebookresearch/ParlAI/pull/3429","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-39207","url":"https://www.cve.org/CVERecord?id=CVE-2021-39207","licence":"CVE Terms of Use","modified":"2024-08-04T01:58:18.337Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m87f-9fvv-2mgg","url":"https://github.com/advisories/GHSA-m87f-9fvv-2mgg","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:18.479Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mwgj-7x7j-6966","url":"https://github.com/advisories/GHSA-mwgj-7x7j-6966","licence":"CC-BY-4.0","modified":"2024-12-04T05:39:38.595Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-39207","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39207","licence":"Public domain","modified":"2026-06-17T04:03:18.797Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-330","url":"https://osv.dev/vulnerability/PYSEC-2021-330","licence":"CC-BY-4.0","modified":"2026-07-09T16:45:06.451Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-334","url":"https://osv.dev/vulnerability/PYSEC-2021-334","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:14.356Z"}],"updatedAt":"2026-11-25T22:58:03.892Z","epss":{"score":0.01794,"percentile":0.79061,"date":"2026-12-01T12:00:22.000Z"}}