Critical Vulnerability in python-gnupg: Context-dependent Attack Risk

python-gnupg Updated 03 Oct 2025

Summary

21/03/2019
N/A
Yes i
High
7.5

UBUNTU-CVE-2019-6690: python-gnupg 0.4.3 allows context-dependent attackers to trick gnupg to decrypt other ciphertext than intended. Affects python-gnupg versions < 0.3.6-1ubuntu0.1~esm1. Fixed in 0.3.6-1ubuntu0.1~esm1. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

python-gnupg is a Python library that provides a simple interface to GnuPG, allowing developers to integrate encryption and decryption functionalities into their applications. It is widely used for secure data handling and cryptographic operations. However, a vulnerability has been identified in versions prior to 0.4.1, which can be exploited by attackers to manipulate the decryption process.

Vulnerability Detail

The vulnerability, identified as CVE-2019-6690, allows context-dependent attackers to trick the python-gnupg library into decrypting unintended ciphertext. This occurs when the passphrase used for decryption is controlled by the attacker, and the ciphertext is trusted. The issue is related to improper input validation, which can lead to unauthorized access to sensitive information. The CVSS score for this vulnerability is 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

0.3.6-1ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-gnupg

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users should avoid using untrusted passphrases and ensure that the ciphertext being decrypted is from a reliable source. Additionally, implementing strict input validation can help mitigate the risk until the package is updated.

Conclusion

The python-gnupg library has a critical vulnerability (CVE-2019-6690) that can be exploited by attackers to decrypt unintended ciphertext. It is crucial for users to update to the latest patched version to protect sensitive data. Implementing strict input validation and using trusted sources for passphrases can help mitigate risks until the update is applied.

See every vulnerability recorded for python-gnupg →

Share this vulnerability

FAQ

CVE-2019-6690 is a vulnerability in the python-gnupg library that allows attackers to manipulate the decryption process by controlling the passphrase.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If exploited, this vulnerability can lead to unauthorized access to sensitive data, as attackers can decrypt ciphertext that should remain secure.

Yes, a patched version of python-gnupg is available. Users should update to version 0.4.1-1ubuntu1.18.04.1 or later.

If immediate updates are not possible, ensure that you use trusted passphrases and validate the sources of your ciphertext to minimize risk.

Related vulnerabilities

Recent vulnerabilities recorded for python-gnupg.

How To Fix

Minimum fixed version

0.3.6-1ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-gnupg

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