CVE-2021-38305
JSON

7.8high

Command injection in Yamale

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
2.49% (higher than 85% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-435p-f82x-mxwmPYSEC-2021-119

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
yamale (PyPI)before 3.0.8GitHub Advisory Database, PyPA Advisory Database
23andme yamalebefore 3.0.8NVD

All scores

GitHub7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD9.3high CVSS:2.0AV:N/AC:M/Au:N/C:C/I:C/A:C

Classification

What each source says

CVE List

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.

NVD (es)

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

References

Sources

SourceRecordLicence
CVE ListCVE-2021-38305 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-435p-f82x-mxwm changed 2024-11-19CC-BY-4.0
NVDCVE-2021-38305 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-119 changed 2023-11-08CC-BY-4.0