ghsa-8q59-q68h-6hv4
Vulnerability from github
Published
2021-03-25 21:26
Modified
2021-09-28 19:04
Severity
Summary
Improper Input Validation in PyYAML
Details

A vulnerability was discovered in the PyYAML library in versions before 5.4, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.

Show details on source website


{
  "affected": [
    {
      "ecosystem_specific": {
        "affected_functions": [
          "yaml.constructor.FullConstructor",
          "yaml.constructor.UnsafeConstructor"
        ]
      },
      "package": {
        "ecosystem": "PyPI",
        "name": "PyYAML"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2020-14343"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-20"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-03-25T21:15:23Z",
    "nvd_published_at": "2021-02-09T21:15:00Z",
    "severity": "CRITICAL"
  },
  "details": "A vulnerability was discovered in the PyYAML library in versions before 5.4, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.",
  "id": "GHSA-8q59-q68h-6hv4",
  "modified": "2021-09-28T19:04:49Z",
  "published": "2021-03-25T21:26:26Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-14343"
    },
    {
      "type": "WEB",
      "url": "https://github.com/SeldonIO/seldon-core/issues/2252"
    },
    {
      "type": "WEB",
      "url": "https://github.com/yaml/pyyaml/issues/420"
    },
    {
      "type": "WEB",
      "url": "https://github.com/yaml/pyyaml/issues/420#issuecomment-663673966"
    },
    {
      "type": "WEB",
      "url": "https://github.com/yaml/pyyaml/commit/a001f2782501ad2d24986959f0239a354675f9dc"
    },
    {
      "type": "WEB",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1860466"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/yaml/pyyaml"
    },
    {
      "type": "WEB",
      "url": "https://pypi.org/project/PyYAML"
    },
    {
      "type": "WEB",
      "url": "https://www.oracle.com/security-alerts/cpuapr2022.html"
    },
    {
      "type": "WEB",
      "url": "https://www.oracle.com/security-alerts/cpujul2022.html"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Improper Input Validation in PyYAML"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...