Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-39207

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-24040, CVE-2021-39207
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:53 UTC · Revision 1

Source evidence

CVE-2021-39207

core-osv · Original source

Published 10 Sept 2021, 23:15 UTC

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.

osv:CVE-2021-39207
Complete source record
{
  "id": "60c66e6f4772a15844a2227270ca894e6162718815163168b9cb021a5ecc7f9e",
  "url": "https://osv.dev/vulnerability/CVE-2021-39207",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-39207",
    "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.",
    "evidence": "osv:CVE-2021-39207",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-39207",
      "aliases": [
        "CVE-2021-24040",
        "CVE-2021-39207",
        "GHSA-m87f-9fvv-2mgg",
        "GHSA-mwgj-7x7j-6966",
        "PYSEC-2021-330",
        "PYSEC-2021-334"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/facebookresearch/parlai",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "7092d77796ae23a4b606b8e61aee7c817747add7"
                },
                {
                  "fixed": "4374fa2aba383db6526ab36e939eb1cf8ef99879"
                },
                {
                  "fixed": "507d066ef432ea27d3e201da08009872a2f37725"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:facebook:parlai:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.1.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4374fa2aba383db6526ab36e939eb1cf8ef99879"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "507d066ef432ea27d3e201da08009872a2f37725"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.0.0",
            "final_mturk",
            "qa_data_collection",
            "v0.10.0",
            "acute_eval",
            "turn_annotations",
            "react_task_demo",
            "qualification_flow_example",
            "v0.9.4",
            "v0.9.3",
            "mturk_archive",
            "v0.9.2",
            "v0.9.1",
            "v0.9.0",
            "v0.8.0",
            "memnn_feedback",
            "mastering_the_dungeon",
            "v0.1.20200716",
            "v0.1.20200416",
            "v0.1.20200409",
            "convai2archive",
            "talkthewalk",
            "personachat"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-39207.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:53.535832086Z",
      "provider": "osv",
      "references": [
        "https://github.com/facebookresearch/ParlAI/commit/4374fa2aba383db6526ab36e939eb1cf8ef99879",
        "https://github.com/facebookresearch/ParlAI/commit/507d066ef432ea27d3e201da08009872a2f37725",
        "https://github.com/facebookresearch/ParlAI/security/advisories/GHSA-m87f-9fvv-2mgg"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-24040",
        "evidence": "/aliases"
      },
      {
        "value": "CVE-2021-39207",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386381,
  "published_at": "2021-09-10T23:15:07.343+00:00"
}