{"id":"CVE-2021-24040","aliases":["CVE-2021-24040","GHSA-m87f-9fvv-2mgg","GHSA-mwgj-7x7j-6966","PYSEC-2021-330","PYSEC-2021-334"],"related":["CVE-2021-39207"],"kind":"vulnerability","state":"published","title":"Deserialization of Untrusted Data in parlai","summary":"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.","summarySource":"cvelist","descriptions":[{"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.","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":"es","text":"Debido al uso de una lógica de deserialización de YAML no segura, un atacante con la capacidad de modificar los archivos de configuración YAML locales podría proporcionar una entrada maliciosa, resultando en una ejecución de código remota o riesgos similares. Este problema afecta a ParlAI versiones anteriores a v1.1.0","source":"nvd"},{"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.","format":"markdown","source":"pysec"}],"published":"2021-09-10T22:10:10.000Z","modified":"2026-07-09T16:45:06.451Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"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:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"custom","introduced":"1.1.0","fixed":"unspecified","status":"unaffected"},{"type":"custom","introduced":"unspecified","fixed":"1.1.0","status":"affected"}],"vendor":"Facebook","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/releases/tag/v1.1.0","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"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":"http://packetstormsecurity.com/files/164136/Facebook-ParlAI-1.0.0-Code-Execution-Deserialization.html","tags":["exploit","third-party-advisory","vdb-entry","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/facebookresearch/ParlAI/commit/4374fa2aba383db6526ab36e939eb1cf8ef99879","tags":["fix","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/facebookresearch/ParlAI/commit/507d066ef432ea27d3e201da08009872a2f37725","tags":["fix","web"],"sources":["ghsa","pysec"]},{"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/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":"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":"facebook","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-24040","url":"https://www.cve.org/CVERecord?id=CVE-2021-24040","licence":"CVE Terms of Use","modified":"2024-08-03T19:21:17.219Z"},{"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-24040","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24040","licence":"Public domain","modified":"2026-06-17T03:39:12.283Z"},{"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.891Z","epss":{"score":0.17353,"percentile":0.97718,"date":"2026-11-29T12:00:22.000Z"}}