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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| yamale (PyPI) | before 3.0.8 | GitHub Advisory Database, PyPA Advisory Database |
| 23andme yamale | before 3.0.8 | NVD |
All scores
| GitHub | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 9.3high CVSS:2.0 | AV: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
| https://github.com/23andMe/Yamale/releases/tag/3.0.8 | release-notes, third-party-advisory, web | |
| https://github.com/23andMe/Yamale/pull/165 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-38305 | advisory | |
| https://github.com/23andMe/Yamale | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/yamale/PYSEC-2021-119.yaml | web | |
| https://github.com/advisories/GHSA-435p-f82x-mxwm | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-38305 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-435p-f82x-mxwm changed 2024-11-19 | CC-BY-4.0 |
| NVD | CVE-2021-38305 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-119 changed 2023-11-08 | CC-BY-4.0 |