CVE-2013-7323: python-gnupg Command Execution Vulnerability
Summary
CVE-2013-7323: python-gnupg allows context-dependent attackers to execute arbitrary commands via shell metacharacters. Affects python-gnupg versions < 0.3.7. Fixed in 0.3.7. How to fix ↓
Also tracked for
- python-gnupg · Debian:11
The same CVE-2013-7323 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
python-gnupg is a Python module that provides a high-level interface to GnuPG, allowing users to encrypt, decrypt, sign, and verify files or messages using the GnuPG encryption software. It is widely used in various applications for secure communication and data protection. However, versions prior to 0.3.5 are vulnerable to a high severity command execution vulnerability.
Vulnerability Detail
The vulnerability in python-gnupg before version 0.3.5 allows context-dependent attackers to execute arbitrary commands by exploiting shell metacharacters in unspecified vectors. This means that an attacker can manipulate certain input parameters to inject malicious commands, which will be executed by the system when the vulnerable code is executed. The impact of this vulnerability can be severe, as it allows an attacker to execute arbitrary commands with the privileges of the user running the vulnerable code.
How To Fix
Latest published version: 0.5.7 as of 23 Oct 2026
pip install --upgrade "python-gnupg==0.5.7"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.3.7
This is the first release that contains the fix.
pip install --upgrade "python-gnupg==0.3.7"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version as soon as possible to ensure the security of the system.
Conclusion
In conclusion, the python-gnupg package prior to version 0.3.5 is vulnerable to a high severity command execution vulnerability. It is crucial for users to upgrade to version 0.3.7 or later to mitigate the risk of arbitrary command execution. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for python-gnupg →
FAQ
python-gnupg is a Python module that provides a high-level interface to GnuPG, allowing users to encrypt, decrypt, sign, and verify files or messages using the GnuPG encryption software.
The vulnerability allows context-dependent attackers to execute arbitrary commands with the privileges of the user running the vulnerable code.
To fix this vulnerability, it is recommended to upgrade python-gnupg to version 0.3.7 or later.
There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version as soon as possible.
For more information about this vulnerability, you can refer to the GitHub Advisory Database: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-c2fx-8r76-gh36/GHSA-c2fx-8r76-gh36.json
Related vulnerabilities
Recent vulnerabilities recorded for python-gnupg.