CVE-2019-6690: python-gnupg Improper Input Validation
Summary
PYSEC-2019-45: python-gnupg 0.4.3 allows context-dependent attackers to trick gnupg to decrypt other ciphertext than intended. Affects python-gnupg versions < 0.4.4. Fixed in 0.4.4. How to fix ↓
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 allows users to interact with GnuPG, a widely used encryption software. It provides functionalities for key generation, encryption, decryption, signing, and verification. The vulnerability identified as CVE-2019-6690 is related to improper input validation in python-gnupg, which can be exploited by a context-dependent attacker to trick gnupg into decrypting unintended ciphertext. This vulnerability affects python-gnupg versions 0.4.3 and earlier.
Vulnerability Detail
The vulnerability arises when an adversary gains control over the passphrase used by gnupg and the ciphertext is trusted. By manipulating the passphrase, the attacker can deceive gnupg into decrypting ciphertext other than the intended one. This vulnerability falls under the category of 'Improper Input Validation' (CWE-20). If successfully exploited, the attacker could gain unauthorized access to sensitive information or perform unauthorized actions.
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.4.4
This is the first release that contains the fix.
pip install --upgrade "python-gnupg==0.4.4"
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 recommended to apply the fix by upgrading to python-gnupg version 0.4.4 or later.
Conclusion
The vulnerability in python-gnupg (CVE-2019-6690) allows an attacker to manipulate the passphrase and decrypt unintended ciphertext. To mitigate this vulnerability, users should upgrade to python-gnupg version 0.4.4 or later. 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 an interface to GnuPG, a widely used encryption software.
If successfully exploited, this vulnerability allows an attacker to decrypt ciphertext other than the intended one, potentially leading to unauthorized access to sensitive information or unauthorized actions.
The vulnerability affects python-gnupg versions 0.4.3 and earlier.
To fix this vulnerability, upgrade to python-gnupg version 0.4.4 or later by running 'pip install --upgrade python-gnupg'.
No, there is no known workaround for this vulnerability. It is recommended to apply the fix by upgrading to python-gnupg version 0.4.4 or later.
Related vulnerabilities
Recent vulnerabilities recorded for python-gnupg.