Gnupg vulnerabilities

60 vulnerabilities

Known vulnerabilities in Gnupg products, newest first, with CVSS severity, EPSS, KEV listings and ransomware use, across 5 products.

Products

5
PrioritiseCVE-2026-118131gnupg +1 moreCVE-2026-118131GnuPG (version 2.5.21) for Windows contains a vulnerability where default Discretionary Access Control List (DACL) inheritance on the C:\ProgramData directory allows members of the BUILTIN\Users group to create arbitrary subdirectories under this path. An attacker with low-privilege access can create the expected GnuPG configuration directory and inject malicious configuration files consumed by GnuPG components. This can result in code execution within the security context of the victim user.CVSS9.8CriticalEPSS0.49%RoutineCVE-2026-105712gnupg +13 moregnupg gnupggpgtar in GnuPG before 2.5.19 can allow file overwrite via crafted data in an archive. When extracting an untrusted archive with --directory (aka -C) into an existing directory containing a pre-existing symlink, gpgtar can follow that symlink and create or overwrite a file outside the selected extraction directory. The write is limited by the extraction user's filesystem permissions. An archive extracted into a fresh empty directory does not have this risk.CVSS3.6LowEPSS0.13%RoutineCVE-2026-57062gnupg +23 moregnupg gnupgCMS (Cryptographic Message Syntax) parsing in gpgsm in GnuPG through 2.5.20 mishandles the CMS format for AES-GCM because aes-ICVlen is supposed to be 12 bytes but 4 bytes is accepted. NOTE: this is related to CVE-2026-34182.CVSS2.9LowEPSS0.14%RoutineCVE-2026-41990gnupg · libgcrypt +6 moregnupg libgcryptLibgcrypt before 1.12.2 mishandles Dilithium signing. Writes to a static array lack a bounds check but do not use attacker-controlled data.CVSS4.0MediumEPSS0.24%RoutineCVE-2026-41989gnupg · libgcrypt +18 moregnupg libgcryptLibgcrypt before 1.12.2 sometimes allows a heap-based buffer overflow and denial of service via crafted ECDH ciphertext to gcry_pk_decrypt.CVSS6.7MediumEPSS0.19%PrioritiseGCVE-1-2026-0008gnupg · gpg-agentgnupg gpg-agentA crafted CMS (S/MIME) EnvelopedData message carrying an oversized wrapped session key (AES Key Wrap ciphertext) can cause a stack buffer overflow in gpg-agent during PKDECRYPT --kem=CMS handling. The root cause is an unbounded session key length derived from attacker-controlled ciphertext and used as the AES Key Wrap output length when decrypting into a fixed-size stack buffer. libgcrypt’s AES-KW unwrap copies attacker-controlled bytes into the caller-provided output buffer before performing integrity checks, so the stack overflow occurs even if later CMS or key-wrap integrity validation fails.CVSS10.0CriticalRoutineCVE-2026-24883gnupg +2 moregnupg gnupgIn GnuPG before 2.5.17, a long signature packet length causes parse_signature to return success with sig->data[] set to a NULL value, leading to a denial of service (application crash).CVSS5.5MediumEPSS0.49%PrioritiseCVE-2026-24882gnupg +16 moregnupg gnupgIn GnuPG before 2.5.17, a stack-based buffer overflow exists in tpm2daemon during handling of the PKDECRYPT command for TPM-backed RSA and ECC keys.CVSS8.4HighEPSS0.44%PrioritiseCVE-2026-24881gnupg +1 moregnupg gnupgIn GnuPG before 2.5.17, a crafted CMS (S/MIME) EnvelopedData message carrying an oversized wrapped session key can cause a stack-based buffer overflow in gpg-agent during PKDECRYPT--kem=CMS handling. This can easily be leveraged for denial of service; however, there is also memory corruption that could lead to remote code execution.CVSS9.8CriticalEPSS1.80%Insufficient evidenceGCVE-1-2026-0001gnupggnupg gnupgReference to the gpg.fail 1.  Multiple Plaintext Attack on Detached PGP Signatures in GnuPG -  https://gpg.fail/detached 2.  GnuPG Accepts Path Separators and Path Traversals in Literal Data "Filename" Field -  https://gpg.fail/filename 3.  Cleartext Signature Plaintext Truncated for Hash Calculation -  https://gpg.fail/formfeed 4.  Encrypted message malleability checks are incorrectly enforced causing plaintext recovery attacks -  https://gpg.fail/malleability 5.  Memory Corruption in ASCII-Armor Parsing -  https://gpg.fail/memcpy 6.  Trusted comment injection (minisign) -  https://gpg.fail/minisign 7.  Cleartext Signature Forgery in the NotDashEscaped header implementation in GnuPG -  https://gpg.fail/notdash 8.  OpenPGP Cleartext Signature Framework Susceptible to Format Confusion -  https://gpg.fail/notsoclear 9.  GnuPG Output Fails To Distinguish Signature Verification Success From Message Content  https://gpg.fail/noverify 10.  Cleartext Signature Forgery in GnuPG -  https://gpg.fail/nullbyte 11.  Radix64 Line-Truncation Enabling Polyglot Attacks -  https://gpg.fail/polyglot 12.  GnuPG may downgrade digest algorithm to SHA1 during key signature checking -  https://gpg.fail/sha1 13.  GnuPG Trust Packet Parsing Enables Adding Arbitrary Subkeys -  https://gpg.fail/trust 14.  Trusted comment Injection (minisign) - https://gpg.fail/trustcommentCVSSUnscoredRoutineCVE-2025-68973gnupg +34 moregnupg gnupgIn GnuPG before 2.4.9, armor_filter in g10/armor.c has two increments of an index variable where one is intended, leading to an out-of-bounds write for crafted input. (For ExtendedLTS, 2.2.51 and later are fixed versions.)CVSS7.8HighEPSS0.16%RoutineCVE-2025-68972gnupg +14 moregnupg gnupgIn GnuPG through 2.4.8, if a signed message has \f at the end of a plaintext line, an adversary can construct a modified message that places additional text after the signed material, such that signature verification of the modified message succeeds (although an "invalid armor" message is printed during verification). This is related to use of \f as a marker to denote truncation of a long plaintext line.CVSS5.9MediumEPSS0.12%RoutineCVE-2025-30258gnupg +39 moregnupg gnupgIn GnuPG before 2.5.5, if a user chooses to import a certificate with certain crafted subkey data that lacks a valid backsig or that has incorrect usage flags, the user loses the ability to verify signatures made from certain other signing keys, aka a "verification DoS."CVSS4.7MediumEPSS0.20%RoutineCVE-2022-3219gnupg +29 moregnupg gnupgGnuPG can be made to spin on a relatively small input by (for example) crafting a public key with thousands of signatures attached, compressed down to just a few KB.CVSS3.3LowEPSS0.31%PrioritiseCVE-2022-3515gnupg +50 moregnupg gnupgA vulnerability was found in the Libksba library due to an integer overflow within the CRL parser. The vulnerability can be exploited remotely for code execution on the target system by passing specially crafted data to the application, for example, a malicious S/MIME attachment.CVSS9.8CriticalEPSS1.77%PrioritiseCVE-2022-47629debian · debian_linux +44 moredebian debian_linuxLibksba before 1.6.3 is prone to an integer overflow vulnerability in the CRL signature parser.CVSS9.8CriticalEPSS1.68%RoutineCVE-2022-34903debian · debian_linux +51 moredebian debian_linuxGnuPG through 2.3.6, in unusual situations where an attacker possesses any secret-key information from a victim's keyring and other constraints (e.g., use of GPGME) are met, allows signature forgery via injection into the status line.CVSS6.5MediumEPSS2.83%RoutineCVE-2021-40528gnupg · libgcrypt +10 moregnupg libgcryptThe ElGamal implementation in Libgcrypt before 1.9.4 allows plaintext recovery because, during interaction between two cryptographic libraries, a certain dangerous combination of the prime defined by the receiver's public key, the generator defined by the receiver's public key, and the sender's ephemeral exponents can lead to a cross-configuration attack against OpenPGP.CVSS5.9MediumEPSS1.42%PrioritiseCVE-2021-33560debian · debian_linux +51 moredebian debian_linuxLibgcrypt before 1.8.8 and 1.9.x before 1.9.3 mishandles ElGamal encryption because it lacks exponent blinding to address a side-channel attack against mpi_powm, and the window size is not chosen appropriately. This, for example, affects use of ElGamal in OpenPGP.CVSS7.5HighEPSS2.37%RoutineCVE-2021-3345gnupg · libgcrypt +3 moregnupg libgcrypt_gcry_md_block_write in cipher/hash-common.c in Libgcrypt version 1.9.0 has a heap-based buffer overflow when the digest final function sets a large count value. It is recommended to upgrade to 1.9.1 or later.CVSS7.8HighEPSS1.07%