CVE-2021-38305 json
Command injection in Yamale
published 5y ago modified 4mo ago also GHSA-435p-f82x-mxwm , PYSEC-2021-119 , EUVD-2021-0470
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi yamale 3.0.8
- 23andme yamale 3.0.8
- github.com/23andMe/Yamale#165 pull request
- github.com/23andMe/Yamale/releases/tag/3.0.8 release
Is CVE-2021-38305 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
2.49% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 9.3 | AV:N/AC:M/Au:N/C:C/I:C/A:C |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | yamale | <3.0.8 |
3.0.8 |
Classification
References
-
github.com
/23andMe/Yamale/pull/165
web, patch, third-party-advisory
-
github.com
/23andMe/Yamale/releases/tag/3.0.8
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-38305
advisory
-
github.com
/23andMe/Yamale
package
-
github.com
/pypa/advisory-database/tree/main/vulns/yamale/PYSEC-2021-119.yaml
web
-
github.com
/advisories/GHSA-435p-f82x-mxwm
advisory
Sources
- CVE List CVE-2021-38305
- GitHub Advisory GHSA-435p-f82x-mxwm
- NVD CVE-2021-38305
- OSV PYSEC-2021-119
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.