{"id":"CVE-2021-39207","aliases":["EUVD-2021-34767","GHSA-m87f-9fvv-2mgg","GHSA-mwgj-7x7j-6966","PYSEC-2021-330","PYSEC-2021-334"],"status":"published","title":"Deserialization of Untrusted Data in parlai","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.","severity":{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01794,"percentile":0.78601,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-502"],"published":"2021-09-10T22:15:00Z","modified":"2026-10-20T10:54:53Z","fixes":[{"ecosystem":"PyPI","package":"parlai","fixed_in":["1.1.0"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"parlai","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0"}]}]},{"source":"osv","ecosystem":"PyPI","package":"parlai","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0"}]}],"versions":["0.1.20200409","0.1.20200416","0.1.20200610","0.1.20200713","0.1.20200716","0.10.0","0.8.0","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","1.0.0"],"bundled":2},{"source":"osv","ecosystem":"PyPI","package":"parlai","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0"}]}],"versions":["0.1.20200409","0.1.20200416","0.1.20200610","0.1.20200713","0.1.20200716","0.10.0","0.8.0","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","1.0.0"],"bundled":2},{"source":"osv","ecosystem":"PyPI","package":"parlai","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0"}]}],"versions":["0.1.20200409","0.1.20200416","0.1.20200610","0.1.20200713","0.1.20200716","0.10.0","0.8.0","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","1.0.0"],"bundled":2},{"source":"osv","ecosystem":"PyPI","package":"parlai","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"507d066ef432ea27d3e201da08009872a2f37725"},{"fixed":"4374fa2aba383db6526ab36e939eb1cf8ef99879"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0"}]}],"versions":["0.1.20200409","0.1.20200416","0.1.20200610","0.1.20200713","0.1.20200716","0.10.0","0.8.0","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","1.0.0"],"bundled":2}],"products":[{"vendor":"facebook","product":"parlai"},{"vendor":"facebookresearch","product":"parlai"}],"references":[{"url":"https://github.com/facebookresearch/ParlAI/security/advisories/GHSA-m87f-9fvv-2mgg","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web","advisory"]},{"url":"https://github.com/facebookresearch/ParlAI/commit/4374fa2aba383db6526ab36e939eb1cf8ef99879","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/facebookresearch/ParlAI/commit/507d066ef432ea27d3e201da08009872a2f37725","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39207","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mwgj-7x7j-6966","tags":["advisory"]},{"url":"https://github.com/facebookresearch/ParlAI/releases/tag/v1.1.0","tags":["advisory","web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/parlai/PYSEC-2021-330.yaml","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/parlai/PYSEC-2021-334.yaml","tags":["web"]},{"url":"http://packetstormsecurity.com/files/164136/Facebook-ParlAI-1.0.0-Code-Execution-Deserialization.html","tags":["evidence","web"]},{"url":"https://github.com/advisories/GHSA-m87f-9fvv-2mgg"},{"url":"https://github.com/facebookresearch/ParlAI","tags":["package"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24040","tags":["advisory"]},{"url":"https://github.com/facebookresearch/ParlAI/pull/3402","tags":["web"]},{"url":"https://github.com/facebookresearch/ParlAI/pull/3429","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-39207","title":"Deserialization of Untrusted Data in parlai","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.","status":"published","published":"2021-09-10T22:20:09Z","modified":"2024-08-04T01:58:18.337Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:33:09.175141Z"}],"euvd":[{"id":"EUVD-2021-34767","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.","status":"published","published":"2021-09-10T22:20:09Z","modified":"2024-08-04T01:58:18Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","level":"high"}],"updated_at":"2026-11-03T03:24:23.719378Z"}],"ghsa":[{"id":"GHSA-m87f-9fvv-2mgg","title":"Deserialization of Untrusted Data in parlai","description":"### 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","status":"published","published":"2021-09-13T20:05:39Z","modified":"2024-10-09T21:00:02Z","cvss":[{"version":"4.0","score":5.6,"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","level":"medium"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","level":"high"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:38:09.785133Z"}],"nvd":[{"id":"CVE-2021-39207","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.","status":"published","published":"2021-09-10T23:15:07.343Z","modified":"2026-06-17T04:03:18.797Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","level":"high","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:06:58.502206Z"}],"osv":[{"id":"CVE-2021-24040","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.","status":"published","published":"2021-09-10T22:15:07.443Z","modified":"2026-10-20T10:53:38.945270323Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:18.778776Z"},{"id":"CVE-2021-39207","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.","status":"published","published":"2021-09-10T23:15:07.343Z","modified":"2026-10-20T10:54:53.535832086Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:20.843843Z"},{"id":"GHSA-m87f-9fvv-2mgg","title":"Deserialization of Untrusted Data in parlai","description":"### 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","status":"published","published":"2021-09-13T20:05:39Z","modified":"2026-07-08T06:29:18.479936919Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","level":"high"},{"version":"4.0","score":5.6,"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","level":"medium"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T15:46:51.463834Z"},{"id":"GHSA-mwgj-7x7j-6966","title":"Deserialization of Untrusted Data in ParlAI","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.","status":"published","published":"2021-09-13T20:06:14Z","modified":"2024-12-04T05:39:38.595706Z","cwes":["CWE-502"],"updated_at":"2026-11-02T15:46:52.534897Z"},{"id":"PYSEC-2021-330","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.","status":"published","published":"2021-09-10T22:15:00Z","modified":"2026-07-09T16:45:06.451893641Z","updated_at":"2026-11-02T15:52:52.682031Z"},{"id":"PYSEC-2021-334","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.","status":"published","published":"2021-09-10T23:15:00Z","modified":"2023-11-08T04:05:14.356894Z","updated_at":"2026-11-02T15:52:52.682031Z"}]}}
