{"id":"CVE-2021-38305","aliases":["CVE-2021-38305","GHSA-435p-f82x-mxwm","PYSEC-2021-119"],"related":[],"kind":"vulnerability","state":"published","title":"Command injection in Yamale","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"23andMe Yamale versiones anteriores a 3.0.8, permite a atacantes remotos ejecutar código arbitrario por medio de un archivo de esquema diseñado. El analizador de esquemas usa la función eval como parte de su procesamiento, e intenta protegerse de las expresiones maliciosas al limitar las funciones integradas que son pasadas a la función eval. Cuando se procesa el esquema, cada línea se ejecuta mediante la función eval de Python para que el comprobador esté disponible. Una cadena bien construida dentro de las reglas del esquema puede ejecutar comandos del sistema; así, al explotar la vulnerabilidad, un atacante puede ejecutar código arbitrario en la imagen que invoca Yamale","source":"nvd"}],"published":"2021-08-09T20:48:52.000Z","modified":"2026-06-17T04:01:50.350Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","score":9.3,"rating":"HIGH"}],"cwes":["CWE-78","CWE-434"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.0.8"}],"ecosystem":"PyPI","package":"yamale","purl":"pkg:pypi/yamale","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.0.8"}],"vendor":"23andme","product":"yamale","cpe":"cpe:2.3:a:23andme:yamale:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.0.8"}],"ecosystem":"PyPI","package":"yamale","purl":"pkg:pypi/yamale","source":"pysec"}],"references":[{"url":"https://github.com/23andMe/Yamale/releases/tag/3.0.8","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/23andMe/Yamale/pull/165","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38305","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/23andMe/Yamale","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/yamale/PYSEC-2021-119.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-435p-f82x-mxwm","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-38305","url":"https://www.cve.org/CVERecord?id=CVE-2021-38305","licence":"CVE Terms of Use","modified":"2024-08-04T01:37:16.314Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-435p-f82x-mxwm","url":"https://github.com/advisories/GHSA-435p-f82x-mxwm","licence":"CC-BY-4.0","modified":"2024-11-19T18:33:15.429Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-38305","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38305","licence":"Public domain","modified":"2026-06-17T04:01:50.350Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-119","url":"https://osv.dev/vulnerability/PYSEC-2021-119","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:27.449Z"}],"updatedAt":"2026-11-25T22:58:03.080Z","epss":{"score":0.0249,"percentile":0.85088,"date":"2026-12-01T12:00:22.000Z"}}