python-gnupg@0.3.5 vulnerabilities

A wrapper for the Gnu Privacy Guard (GPG or GnuPG)

Direct Vulnerabilities

Known vulnerabilities in the python-gnupg package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Improper Input Validation

python-gnupg is a command-line program which provides support for programmatic access via spawning a separate process to run it and then communicating with that process from your program.

Affected versions of this package are vulnerable to Improper Input Validation. An attacker can inject data through the passphrase property of the gnupg.GPG.encrypt() and gnupg.GPG.decrypt() methods 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.

How to fix Improper Input Validation?

Upgrade python-gnupg to version 0.4.4 or higher.

[,0.4.4)
  • M
Arbitrary Code Execution

python-gnupg is a wrapper for the Gnu Privacy Guard (GPG or GnuPG)

python-gnupg 0.3.5 and 0.3.6 allows context-dependent attackers to have an unspecified impact via vectors related to "option injection through positional arguments."

NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-7323.

[0.3.5,0.3.6]
  • M
Arbitrary Code Execution

python-gnupg is a wrapper for the Gnu Privacy Guard (GPG or GnuPG).

The shell_quote function in python-gnupg 0.3.5 does not properly escape characters, which allows context-dependent attackers to execute arbitrary code via shell metacharacters in unspecified vectors, as demonstrated using "" (backslash) characters to form multi-command sequences, a different vulnerability than CVE-2014-1927.

NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-7323.

[0.3.5]
  • H
Arbitrary Code Execution

python-gnupg is a wrapper for the Gnu Privacy Guard (GPG or GnuPG).

The shell_quote function in python-gnupg 0.3.5 does not properly quote strings, which allows context-dependent attackers to execute arbitrary code via shell metacharacters in unspecified vectors, as demonstrated using "$(" command-substitution sequences, a different vulnerability than CVE-2014-1928.

NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-7323.

[0.3.5]