CVE-2021-38305
HIGH 7.8CVSS 3.1Command injection in Yamale
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.
- Published
- 9 Aug 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-434CWE-78
- Also known as
- GHSA-435p-f82x-mxwmPYSEC-2021-119
- Sources
- NVDJSONOSV GHSA-435p-f82x-mxwmJSONOSV PYSEC-2021-119JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 9.3 | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | 23andme | yamalecpe:2.3:a:23andme:yamale:*:*:*:*:*:*:*:* |
< 3.0.8 | 3.0.8 |
| OSV | PyPI | yamale | < 3.0.8 | 3.0.8 |
References
- https://github.com/23andMe/Yamale/pull/165 · Patch, Third Party Advisory, WEB
- https://github.com/23andMe/Yamale/releases/tag/3.0.8 · Release Notes, 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 9 Aug 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Aug 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 Aug 2021)