CVE-2014-1927 python-gnupg's shell_quote function does not properly quote strings
Attackers can execute arbitrary code via shell metacharacters in the python-gnupg library due to improper string quoting.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2014-1927?
CVE-2014-1927 is a high-severity command injection vulnerability in n/a, published on 25 Oct 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The shell_quote function in python-gnupg 0.3.5 does not properly quote strings, which allows context-dependent attackers to execute arbitrary code via shell metacharacters in unspecified vectors, as demonstrated using "$(" command-substitution sequences, a different vulnerability than CVE-2014-1928. NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-7323.
Weakness: CWE-20
Which versions are affected by CVE-2014-1927?
3 open source packages ship an affected version, including python-gnupg. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
python-gnupg PyPI | From 0.3.5 | 0.3.6 |
python-gnupg PyPI | From 0.3.5 | 0.3.6 |
python-gnupg PyPI | From 0.3.5 | 0.3.6 |
Products include Python-Gnupg Project Python-Gnupg.
How do I fix CVE-2014-1927?
Upgrade python-gnupg to 0.3.6 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2014-1927 being exploited?
There is no known exploitation of CVE-2014-1927 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2014-1927, GHSA-r3vr-prwv-86g9, PYSEC-2014-90, UBUNTU-CVE-2014-1927.