CVE-2018-20325 Code injection in Danijar Definitions
Attackers can execute arbitrary Python commands via the load method in the definitions package, potentially compromising the host system.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2018-20325?
CVE-2018-20325 is a critical code injection vulnerability in n/a, published on 21 Dec 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
There is a vulnerability in load() method in definitions/parser.py in the Danijar Hafner definitions package for Python. It can execute arbitrary python commands resulting in command execution.
Weakness: CWE-94
Which versions are affected by CVE-2018-20325?
3 open source packages ship an affected version, including definitions. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
definitions PyPI | All versions | None |
definitions PyPI | All versions to 0.2.0 | None |
definitions PyPI | All versions to 0.2.0 | None |
Products include Definitions Project Definitions.
How do I fix CVE-2018-20325?
No fix has been published for CVE-2018-20325 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2018-20325 being exploited?
There is no known exploitation of CVE-2018-20325 in the wild and no public exploit code.
Sources
Also known as GHSA-v4x4-98cg-wr4g, PYSEC-2018-82.