{"id":"CVE-2021-38305","published":"2021-08-09T20:48:52Z","modified":"2024-08-04T01:37:16Z","title":"23andMe Yamale before 3.0.8 allows remote attackers to execute arbitrary code via a crafted schema file","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0249,"percentile":0.85032,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/23andMe/Yamale/releases/tag/3.0.8","tags":["x_refsource_MISC"]},{"url":"https://github.com/23andMe/Yamale/pull/165","tags":["x_refsource_MISC"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":17.01}]},"affected":[{"ecosystem":"PyPI","package":"yamale","vulnerableRanges":["<3.0.8"],"patched":["3.0.8"],"from":["GHSA-435p-f82x-mxwm","PYSEC-2021-119"],"provenance":"source"}],"summary":{"text":"The flaw is in the schema parser of 23andMe's Yamale library, in versions before 3.0.8, where each line of a schema is passed to Python's eval function to make the validator available. The attempt to restrict eval through limited builtins does not stop a well-constructed expression in the schema rules from running system commands, so an attacker who supplies a crafted schema file can execute arbitrary code on the system that runs Yamale.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:07Z"},"euvd":{"id":"EUVD-2021-0470","exploited":false,"provenance":"source"}}