{
  "schema_version": "1.4.0",
  "id": "GHSA-435p-f82x-mxwm",
  "modified": "2024-11-19T18:25:44Z",
  "published": "2021-08-11T15:19:23Z",
  "aliases": [
    "CVE-2021-38305"
  ],
  "summary": "Command injection in Yamale",
  "details": "23andMe Yamale before 3.0.8 allows remote attackers to execute arbitrary code via a crafted schema file. The schema parser uses eval as part of its processing, and tries to protect from malicious expressions by limiting the builtins that are passed to the eval. When processing the schema, each line is run through Python's eval function to make the validator available. A well-constructed string within the schema rules can execute system commands; thus, by exploiting the vulnerability, an attacker can run arbitrary code on the image that invokes Yamale.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
    },
    {
      "type": "CVSS_V4",
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "yamale"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3.0.8"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-38305"
    },
    {
      "type": "WEB",
      "url": "https://github.com/23andMe/Yamale/pull/165"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/23andMe/Yamale"
    },
    {
      "type": "WEB",
      "url": "https://github.com/23andMe/Yamale/releases/tag/3.0.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/yamale/PYSEC-2021-119.yaml"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-434",
      "CWE-78"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-10T17:33:14Z",
    "nvd_published_at": "2021-08-09T21:15:00Z"
  }
}