Security Update for python-gnupg

python-gnupg Updated 02 Oct 2025

Summary

29/12/2021
N/A
Yes i
Unrated
Not published

DLA-2862-1: python-gnupg - security update. Affects python-gnupg versions < 0.3.9-1+deb9u1. Fixed in 0.3.9-1+deb9u1. 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 wrapper for the GNU Privacy Guard (GnuPG), providing a high-level interface for cryptographic operations. It allows users to encrypt, decrypt, sign, and verify data using GnuPG. This package is widely used in various applications that require secure communication and data protection. However, python-gnupg versions before 0.3.9-1+deb9u1 are vulnerable to two security issues.

Vulnerability Detail

The first vulnerability, identified as CVE-2018-12020, involves the mishandling of certain command line parameters in GnuPG before version 2.2.8. This flaw allows a remote attacker to manipulate the output of GnuPG, making unsigned emails appear signed. The second vulnerability, known as CVE-2019-6690, affects python-gnupg and relates to the incorrect handling of GPG passphrases. An attacker can exploit this flaw by sending a specially crafted passphrase, enabling them to control the output of encryption and decryption operations.

How To Fix

Minimum fixed version

0.3.9-1+deb9u1

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 →

Conclusion

In conclusion, python-gnupg versions prior to 0.3.9-1+deb9u1 are affected by two vulnerabilities that can be exploited by remote attackers. To mitigate these issues, it is crucial to upgrade to the recommended version. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for python-gnupg →

Share this vulnerability

FAQ

python-gnupg is a Python wrapper for GnuPG, providing a convenient interface for cryptographic operations.

CVE-2018-12020 is a vulnerability that allows an attacker to spoof the output of GnuPG, making unsigned emails appear signed.

CVE-2019-6690 is a vulnerability in python-gnupg that enables an attacker to control the output of encryption and decryption operations by sending a specially crafted passphrase.

To fix the vulnerabilities, you should upgrade python-gnupg to version 0.3.9-1+deb9u1 or later by updating the package using the package manager of the Debian 9 (stretch) distribution.

No specific workaround has been provided for these vulnerabilities. It is recommended to apply the security update as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for python-gnupg.

How To Fix

Minimum fixed version

0.3.9-1+deb9u1

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