Description
The shell_quote function in python-gnupg 0.3.5 does not properly escape characters, which allows context-dependent attackers to execute arbitrary code via shell metacharacters in unspecified vectors, as demonstrated using "\" (backslash) characters to form multi-command sequences, a different vulnerability than CVE-2014-1927. NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-7323.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-gnupg | 0.3.6-1 | — |
| Debian 13 | python-gnupg | 0.3.6-1 | — |
| Debian 12 | python-gnupg | 0.3.6-1 | — |
| Debian 7 | python-gnupg | 0.3.6-1~deb7u1 | DSA-2946-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | python-gnupg | >= 0.3.5, < 0.3.6 | 0.3.6 | GHSA-2jc8-4r6g-282j |
| PyPI | python-gnupg | < 0.3.6 | 0.3.6 | PYSEC-2014-91 |
Advisories 1
- DSA-2946-1 python-gnupg - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- 56616 third-party-advisory
- [oss-security] 20140204 Re: CVE request: python-gnupg before 0.3.5 shell injection mailing-list
- DSA-2946 vendor-advisory
- https://code.google.com/p/python-gnupg/issues/detail?id=98
- https://code.google.com/p/python-gnupg/
- [oss-security] 20140209 Re: CVE request: python-gnupg before 0.3.5 shell injection mailing-list
- 59031 third-party-advisory