Advisory

PYSEC-2021-119

Also known as: CVE-2021-38305, GHSA-435p-f82x-mxwm

Summary

The record has no summary.

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

Not rated by the source.

Dates

Published
2021-08-09 21:15 UTC
Modified
2023-11-08 04:06 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: PyPA Advisory Database · CC BY 4.0

Sources & licences