Vulnerability · Published Aug 9, 2021 · Assigned by mitre

CVE-2021-38305

High 7.8

In plain English

A high-severity security flaw in the yamale package (PyPI). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.5% (higher than 85% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)2.5%top 15.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIyamale3.0.8GHSA-435p-f82x-mxwm
PyPIyamale3.0.8PYSEC-2021-119

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References