Advisory

GHSA-435p-f82x-mxwm

Also known as: CVE-2021-38305, PYSEC-2021-119

Summary

Command injection in Yamale

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-11 15:19 UTC
Modified
2024-11-19 18:33 UTC

Affected packages and fixes

yamale

PyPI · All systems

Affected

  • introduced 0, fixed 3.0.8 (ecosystem)

Fixed versions

3.0.8

Fix

  • Fixed version 3.0.8
    pip install --upgrade yamale==3.0.8

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences