PYSEC-2021-119

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/yamale/PYSEC-2021-119.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2021-119
Aliases
Published
2021-08-09T21:15:00Z
Modified
2023-11-08T04:06:27.449217Z
Summary
[none]
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.

References

Affected packages

PyPI / yamale

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.8

Affected versions

1.*

1.1.3
1.2.0
1.2.1
1.3.0
1.3.1
1.4.0
1.4.1
1.5.0
1.5.2
1.5.3
1.5.4
1.5.5
1.5.6
1.6.0
1.6.1
1.6.2
1.6.3
1.6.4
1.7.0
1.7.1
1.8.0
1.8.1
1.9.0
1.10.0
1.10.1

2.*

2.0
2.0.1
2.1.0
2.2.0

3.*

3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.0.6
3.0.7