CVE-2019-6690: python-gnupg Improper Input Validation

python-gnupg Updated 02 Oct 2025

Summary

21/03/2019
N/A
Yes i
Unrated
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback