# CVE-2021-38305: Command injection in Yamale

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.49%, higher than 85% of CVEs (2026-12-01)
- Published: 2021-08-09T20:48:52.000Z
- Modified: 2026-06-17T04:01:50.350Z
- Also known as: GHSA-435p-f82x-mxwm, PYSEC-2021-119
- Weaknesses: CWE-78, CWE-434
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- yamale (PyPI): before 3.0.8
- 23andme yamale: before 3.0.8

## Every score

- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 9.3 High `AV:N/AC:M/Au:N/C:C/I:C/A:C`

## 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

- CVE List: [CVE-2021-38305](https://www.cve.org/CVERecord?id=CVE-2021-38305), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-435p-f82x-mxwm](https://github.com/advisories/GHSA-435p-f82x-mxwm), CC-BY-4.0, modified 2024-11-19
- NVD: [CVE-2021-38305](https://nvd.nist.gov/vuln/detail/CVE-2021-38305), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-119](https://osv.dev/vulnerability/PYSEC-2021-119), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-38305 · Whole record: https://cve.day/CVE-2021-38305.json · Rebuilt by cve.day 2026-11-25T22:58:03.080Z
