Debian DLA-1675-1 : python-gnupg security update

high Nessus Plugin ID 122195

Synopsis

The remote Debian host is missing a security update.

Description

Alexander Kjäll and Stig Palmquist discovered a vulnerability in python-gnupg, a wrapper around GNU Privacy Guard. It was possible to inject data through the passphrase property of the gnupg.GPG.encrypt() and gnupg.GPG.decrypt() functions when symmetric encryption is used.
The supplied passphrase is not validated for newlines, and the library passes --passphrase-fd=0 to the gpg executable, which expects the passphrase on the first line of stdin, and the ciphertext to be decrypted or plaintext to be encrypted on subsequent lines.

By supplying a passphrase containing a newline an attacker can control/modify the ciphertext/plaintext being decrypted/encrypted.

For Debian 8 'Jessie', this problem has been fixed in version 0.3.6-1+deb8u1.

We recommend that you upgrade your python-gnupg packages.

NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.

Solution

Upgrade the affected python-gnupg, and python3-gnupg packages.

See Also

https://lists.debian.org/debian-lts-announce/2019/02/msg00021.html

https://packages.debian.org/source/jessie/python-gnupg

Plugin Details

Severity: High

ID: 122195

File Name: debian_DLA-1675.nasl

Version: 1.7

Type: local

Agent: unix

Published: 2/15/2019

Updated: 6/20/2024

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2019-6690

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:8.0, p-cpe:/a:debian:debian_linux:python-gnupg, p-cpe:/a:debian:debian_linux:python3-gnupg

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/14/2019

Vulnerability Publication Date: 3/21/2019

Reference Information

CVE: CVE-2019-6690