portage-ng / portage / app-crypt / gnupg / 2.5.21
portage-ng glsa
13 advisories reference app-crypt/gnupg · none place version 2.5.21 in a vulnerable range
▸ GLSA 202512-01 GnuPG: Arbitrary Code Execution this version unaffected high remote 2025-12-27

A vulnerability has been discovered in GnuPG, which can lead to arbitrary code execution.

Announced
2025-12-27
Revised
2025-12-27
Access
remote
Bugs
#967884
Advisory
https://security.gentoo.org/glsa/202512-01

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 2.5.14>= 2.5.14

Background

The GNU Privacy Guard, GnuPG, is a free replacement for the PGP suite of cryptographic software.

Description

A vulnerability has been discovered in GnuPG's armor parser.

Impact

A remote attacker could entice a user or automated system to process a specially crafted signature file, possibly resulting in execution of arbitrary commands with the privileges of the process.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-2.5.14"
▸ GLSA 202408-23 GnuPG: Multiple Vulnerabilities this version unaffected normal remote 2024-08-10

Multiple vulnerabilities have been discovered in GnuPG, the worst of which could lead to signature spoofing.

Announced
2024-08-10
Revised
2024-08-10
Access
remote
Bugs
#855395 #923248
Advisory
https://security.gentoo.org/glsa/202408-23

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 2.4.4>= 2.4.4

Background

The GNU Privacy Guard, GnuPG, is a free replacement for the PGP suite of cryptographic software.

Description

Multiple vulnerabilities have been discovered in GnuPG. Please review the CVE identifiers referenced below for details.

Impact

Please review the referenced CVE identifiers for details.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-2.4.4"

References

▸ GLSA 201612-01 GnuPG: RNG output is predictable this version unaffected normal local 2016-12-02

Due to a design flaw, the output of GnuPG's Random Number Generator (RNG) is predictable.

Announced
2016-12-02
Revised
2016-12-02
Access
local
Bugs
#591536
Advisory
https://security.gentoo.org/glsa/201612-01

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 1.4.21>= 1.4.21

Background

The GNU Privacy Guard, GnuPG, is a free replacement for the PGP suite of cryptographic software.

Description

A long standing bug (since 1998) in Libgcrypt (see “GLSA 201610-04” below) and GnuPG allows an attacker to predict the output from the standard RNG. Please review the “Entropy Loss and Output Predictability in the Libgcrypt PRNG” paper below for a deep technical analysis.

Impact

An attacker who obtains 580 bytes of the random number from the standard RNG can trivially predict the next 20 bytes of output.

This flaw does not affect the default generation of keys, because running gpg for key creation creates at most 2 keys from the pool. For a single 4096 bit RSA key, 512 bytes of random are required and thus for the second key (encryption subkey), 20 bytes could be predicted from the the first key.

However, the security of an OpenPGP key depends on the primary key (which was generated first) and thus the 20 predictable bytes should not be a problem. For the default key length of 2048 bit nothing will be predictable.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG 1 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-1.4.21"

References

▸ GLSA 201606-04 GnuPG: Multiple vulnerabilities this version unaffected normal local, remote 2016-06-05

Multiple vulnerabilities have been found in GnuPG and libgcrypt, the worst of which may allow a local attacker to obtain confidential key information.

Announced
2016-06-05
Revised
2016-06-10 (revision 2)
Access
local, remote
Bugs
#534110 #541564 #541568
Advisory
https://security.gentoo.org/glsa/201606-04

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 2.0.26-r3>= 2.0.26-r3, >= 1.4.19 (revision), >= 1.4.20 (revision), >= 1.4.21 (revision), >= 1.4.22 (revision)
dev-libs/libgcrypt*< 1.6.3-r4>= 1.6.3-r4

Background

The GNU Privacy Guard, GnuPG, is a free replacement for the PGP suite of cryptographic software.

Description

Multiple vulnerabilities have been discovered in GnuPG and libgcrypt, please review the CVE identifiers referenced below for details.

Impact

A local attacker could possibly cause a Denial of Service condition. Side-channel attacks could be leveraged to obtain key material.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG 2 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-2.0.26-r3"

All GnuPG 1 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-1.4.19"

All libgcrypt users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-libs/libgcrypt-1.6.3-r4"

References

▸ GLSA 201407-04 GnuPG: Denial of service this version unaffected normal local, remote 2014-07-16

A vulnerability in GnuPG can lead to a Denial of Service condition.

Announced
2014-07-16
Revised
2014-07-16
Access
local, remote
Bugs
#514718
Advisory
https://security.gentoo.org/glsa/201407-04

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 2.0.24>= 2.0.24, >= 1.4.17 (revision), >= 1.4.18 (revision), >= 1.4.19 (revision), >= 1.4.20 (revision), >= 1.4.21 (revision)

Background

The GNU Privacy Guard, GnuPG, is a free replacement for the PGP suite of cryptographic software.

Description

GnuPG does not properly handle a specially crated compressed packet resulting in an infinite loop.

Impact

A context-dependent attacker can cause a Denial of Service.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG 2.0 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-2.0.24"

All GnuPG 1.4 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-1.4.17"

References

▸ GLSA 201402-24 GnuPG, Libgcrypt: Multiple vulnerabilities this version unaffected normal local, remote 2014-02-21

Multiple vulnerabilities have been discovered in GnuPG and Libgcrypt, which may result in execution of arbitrary code, Denial of Service, or the disclosure of private keys.

Announced
2014-02-21
Revised
2016-08-24 (revision 3)
Access
local, remote
Bugs
#449546 #478184 #484836 #487230 #494658
Advisory
https://security.gentoo.org/glsa/201402-24

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 2.0.22>= 2.0.22, >= 1.4.16 (revision), >= 1.4.17 (revision), >= 1.4.18 (revision), >= 1.4.19 (revision), >= 1.4.20 (revision), >= 1.4.21 (revision)
dev-libs/libgcrypt*< 1.5.3>= 1.5.3

Background

The GNU Privacy Guard, GnuPG, is a free replacement for the PGP suite of cryptographic software. Libgcrypt is a cryptographic library based on GnuPG.

Description

Multiple vulnerabilities have been discovered in GnuPG and Libgcrypt. Please review the CVE identifiers referenced below for details.

Impact

An unauthenticated remote attacker may be able to execute arbitrary code with the privileges of the user running GnuPG, cause a Denial of Service condition, or bypass security restrictions. Additionally, a side-channel attack may allow a local attacker to recover a private key, please review “Flush+Reload: a High Resolution, Low Noise, L3 Cache Side-Channel Attack” in the References section for further details.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG 2.0 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-2.0.22"

All GnuPG 1.4 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-1.4.16"

All Libgcrypt users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-libs/libgcrypt-1.5.3"

References

▸ GLSA 201110-15 GnuPG: User-assisted execution of arbitrary code this version unaffected normal remote 2011-10-22

The GPGSM utility included in GnuPG contains a use-after-free vulnerability that may allow an unauthenticated remote attacker to execute arbitrary code.

Announced
2011-10-22
Revised
2011-10-22
Access
remote
Bugs
#329583
Advisory
https://security.gentoo.org/glsa/201110-15

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 2.0.16-r1>= 2.0.16-r1, < 2.0

Background

The GNU Privacy Guard, GnuPG, is a free replacement for the PGP suite of cryptographic software. The GPGSM utility in GnuPG is responsible for processing X.509 certificates, signatures and encryption as well as S/MIME messages.

Description

The GPGSM utility in GnuPG contains a use-after-free vulnerability that may be exploited when importing a crafted X.509 certificate explicitly or during the signature verification process.

Impact

An unauthenticated remote attacker may execute arbitrary code with the privileges of the user running GnuPG by enticing them to import a crafted certificate.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG 2.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-2.0.16-r1"

References

▸ GLSA 200612-03 GnuPG: Multiple vulnerabilities this version unaffected normal remote 2006-12-10

GnuPG is vulnerable to a buffer overflow and an erroneous function pointer dereference that can result in the execution of arbitrary code.

Announced
2006-12-10
Revised
2006-12-10 (revision 2)
Access
remote
Bugs
#156476 #156947
Advisory
https://security.gentoo.org/glsa/200612-03

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 1.4.6>= 1.4.6

Background

The GNU Privacy Guard, GnuPG, is a free replacement for the PGP suite of cryptographic software.

Description

Hugh Warrington has reported a boundary error in GnuPG, in the "ask_outfile_name()" function from openfile.c: the make_printable_string() function could return a string longer than expected. Additionally, Tavis Ormandy of the Gentoo Security Team reported a design error in which a function pointer can be incorrectly dereferenced.

Impact

A remote attacker could entice a user to interactively use GnuPG on a crafted file and trigger the boundary error, which will result in a buffer overflow. They could also entice a user to process a signed or encrypted file with gpg or gpgv, possibly called through another application like a mail client, to trigger the dereference error. Both of these vulnerabilities would result in the execution of arbitrary code with the permissions of the user running GnuPG. gpg-agent, gpgsm and other tools are not affected.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose "=app-crypt/gnupg-1.4*"

References

▸ GLSA 200608-08 GnuPG: Integer overflow vulnerability this version unaffected high remote 2006-08-05

GnuPG is vulnerable to an integer overflow that could lead to the execution of arbitrary code.

Announced
2006-08-05
Revised
2006-08-08 (revision 2)
Access
remote
Bugs
#142248
Advisory
https://security.gentoo.org/glsa/200608-08

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 1.4.5>= 1.4.5

Background

The GNU Privacy Guard, GnuPG, is a free replacement for the PGP suite of cryptographic software.

Description

Evgeny Legerov discovered a vulnerability in GnuPG that when certain packets are handled an integer overflow may occur.

Impact

By sending a specially crafted email to a user running an affected version of GnuPG, a remote attacker could possibly execute arbitrary code with the permissions of the user running GnuPG.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose "=app-crypt/gnupg-1.4*"

References

▸ GLSA 200603-08 GnuPG: Incorrect signature verification this version unaffected normal remote 2006-03-10

GnuPG may erroneously report a modified or unsigned message has a valid digital signature.

Announced
2006-03-10
Revised
2006-03-10
Access
remote
Bugs
#125217
Advisory
https://security.gentoo.org/glsa/200603-08

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 1.4.2.2>= 1.4.2.2

Background

The GNU Privacy Guard, GnuPG, is a free replacement for the PGP suite of cryptographic software that may be used without restriction, as it does not rely on any patented algorithms. GnuPG can be used to digitally sign messages, a method of ensuring the authenticity of a message using public key cryptography.

Description

OpenPGP is the standard that defines the format of digital signatures supported by GnuPG. OpenPGP signatures consist of multiple sections, in a strictly defined order. Tavis Ormandy of the Gentoo Linux Security Audit Team discovered that certain illegal signature formats could allow signed data to be modified without detection. GnuPG has previously attempted to be lenient when processing malformed or legacy signature formats, but this has now been found to be insecure.

Impact

A remote attacker may be able to construct or modify a digitally-signed message, potentially allowing them to bypass authentication systems, or impersonate another user.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-1.4.2.2"

References

▸ GLSA 200602-10 GnuPG: Incorrect signature verification this version unaffected normal remote 2006-02-18

Applications relying on GnuPG to authenticate digital signatures may incorrectly believe a signature has been verified.

Announced
2006-02-18
Revised
2006-02-18
Access
remote
Bugs
#122721
Advisory
https://security.gentoo.org/glsa/200602-10

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 1.4.2.1>= 1.4.2.1

Background

GnuPG (The GNU Privacy Guard) is a free replacement for PGP (Pretty Good Privacy). As GnuPG does not rely on any patented algorithms, it can be used without any restrictions. gpgv is the OpenPGP signature verification tool provided by the GnuPG system.

Description

Tavis Ormandy of the Gentoo Linux Security Auditing Team discovered that automated systems relying on the return code of GnuPG or gpgv to authenticate digital signatures may be misled by malformed signatures. GnuPG documentation states that a return code of zero (0) indicates success, however gpg and gpgv may also return zero if no signature data was found in a detached signature file.

Impact

An attacker may be able to bypass authentication in automated systems relying on the return code of gpg or gpgv to authenticate digital signatures.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-1.4.2.1"

References

▸ GLSA 200503-29 GnuPG: OpenPGP protocol attack this version unaffected low remote 2005-03-24

Automated systems using GnuPG may leak plaintext portions of an encrypted message.

Announced
2005-03-24
Revised
2005-03-24
Access
remote
Bugs
#85547
Advisory
https://security.gentoo.org/glsa/200503-29

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*< 1.4.1>= 1.4.1

Background

GnuPG is complete and free replacement for PGP, a tool for secure communication and data storage.

Description

A flaw has been identified in an integrity checking mechanism of the OpenPGP protocol.

Impact

An automated system using GnuPG that allows an attacker to repeatedly discover the outcome of an integrity check (perhaps by observing the time required to return a response, or via overly verbose error messages) could theoretically reveal a small portion of plaintext.

Workaround

There is no known workaround at this time.

Resolution

All GnuPG users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-crypt/gnupg-1.4.1"

References

▸ GLSA 200312-05 GnuPG: ElGamal signing keys compromised and format string vulnerability this version unaffected minimal unknown 2003-12-12

A bug in GnuPG allows ElGamal signing keys to be compromised, and a format string bug in the gpgkeys_hkp utility may allow arbitrary code execution.

Announced
2003-12-12
Revised
2003-12-12
Access
unknown
Bugs
#34504
Advisory
https://security.gentoo.org/glsa/200312-05

Affected packages

PackageArchVulnerableUnaffected
app-crypt/gnupg*<= 1.2.3-r4>= 1.2.3-r5

Background

GnuPG is a popular open source signing and encryption tool.

Description

Two flaws have been found in GnuPG 1.2.3.

First, ElGamal signing keys can be compromised. These keys are not commonly used, but this is "a significant security failure which can lead to a compromise of almost all ElGamal keys used for signing. Note that this is a real world vulnerability which will reveal your private key within a few seconds".

Second, there is a format string flaw in the 'gpgkeys_hkp' utility which "would allow a malicious keyserver in the worst case to execute an arbitrary code on the user's machine."

Impact

If you have used ElGamal keys for signing your private key can be compromised, and a malicious keyserver could remotely execute arbitrary code with the permissions of the user running gpgkeys_hkp.

Workaround

There is no known workaround at this time.

Resolution

All users who have created ElGamal signing keys should immediately revoke them. In addition, all Gentoo Linux machines with gnupg installed should be updated to use gnupg-1.2.3-r5 or higher:

# emerge sync
# emerge -pv '>=app-crypt/gnupg-1.2.3-r5'
# emerge '>=app-crypt/gnupg-1.2.3-r5'
# emerge clean

References