CVE-2019-7537 Donfig Command Injection in collect_yaml method
Attackers can execute arbitrary Python commands via the collect_yaml method in the Donfig configuration library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-7537?
CVE-2019-7537 is a critical code injection vulnerability in n/a, published on 21 Mar 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in Donfig 0.3.0. There is a vulnerability in the collect_yaml method in config_obj.py. It can execute arbitrary Python commands, resulting in command execution.
Weakness: CWE-77
Which versions are affected by CVE-2019-7537?
3 open source packages ship an affected version, including donfig. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
donfig PyPI | All versions | 0.4.0 |
donfig PyPI | All versions | 0.4.0 |
donfig PyPI | All versions | 0.4.0 |
Products include Pytroll Donfig.
How do I fix CVE-2019-7537?
Upgrade donfig to 0.4.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2019-7537 being exploited?
There is no known exploitation of CVE-2019-7537 in the wild and no public exploit code.
Sources
Also known as GHSA-3qr5-h7w4-3gx3, PYSEC-2019-21.