Skip to content

Command injection in Yamale

High severity GitHub Reviewed Published Aug 11, 2021 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

pip yamale (pip)

Affected versions

< 3.0.8

Patched versions

3.0.8

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.

References

Published by the National Vulnerability Database Aug 9, 2021
Reviewed Aug 10, 2021
Published to the GitHub Advisory Database Aug 11, 2021
Last updated Feb 1, 2023

Severity

High
7.8
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVE ID

CVE-2021-38305

GHSA ID

GHSA-435p-f82x-mxwm

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.