Skip to content
OpenAdvisories
High · 7.8 CVE-2021-38305 EUVD-2021-0470GHSA-435p-f82x-mxwmPYSEC-2021-119

Command injection in Yamale

Published Aug 9, 2021 · Updated Aug 4, 2024 · 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.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI yamale < 3.0.8 3.0.8 GHSA-435p-f82x-mxwm

References