See how gnupg compares to other vendors in security performance
On Sun, 22 Nov 2026 14:50, Aaron Rainbolt said: raw analysis results with others), but fixing issues whenever you want without explicit consent is fine, and I didn't have to file an NDA to use it. See https://scan.coverity.com/policy. That might be the case today but many years ago (~20 years) things were different and this is why I was glad that RedHat offered us to forward their findings
Salam-Shalom,
Werner
-- The pioneers of a warless world are the youth that refuse military service. - A. Einstein
On Sun, Nov 22, 2026 at 2:34 PM Werner Koch <wk () gnupg org> wrote: On Sat, 21 Nov 2026 10:23, Sam James said: Todd Zullinger points out something unfortunate: RH had this patched downstream years ago.
Werner, I assume that was never sent to you? Not that I can remember.
We regularly received results from Coverity scans via Redhat. Fortunately they had already filtered them on plausibility and thus the mentioned one might have slipped through. In particular because it was mostly about memory leakage in error paths.
It is a bit strange that this was a one-off patch and never re-applied to newer releases. That part of the code did not receive any serious updated in the last decades.
FWIW: I recall that Coverity once offered us free scans but we would have had to sign an NDA with the requirement to immediately apply fixes only with the consent of Coverity :-( AIUI Coverity offers free scans to just about everyone as long as they can prove ownership of the project. The legal agreement is a bit strange in some areas (i.e. you can't share screenshots of the UI or raw analysis results with others), but fixing issues whenever you want without explicit consent is fine, and I didn't have to file an NDA to use it. See https://scan.coverity.com/policy.
I wrote a bit about concerns I had with the Coverity Scan user agreement here back when Whonix was looking at it: https://forums.whonix.org/t/add-sonarqube-and-or-coverity-code-scanner-to-whonix-github/14073/4 Since I wrote this, Whonix has gotten Coverity Scan set up on many of our repos, and haven't run into any issues legal or otherwise, so I think the concerns I had there were not a big deal.
-- Aaron Shalom-Salam,
Werner
-- The pioneers of a warless world are the youth that refuse military service. - A. Einstein
On Sat, 21 Nov 2026 10:23, Sam James said: Todd Zullinger points out something unfortunate: RH had this patched downstream years ago.
Werner, I assume that was never sent to you? Not that I can remember.
We regularly received results from Coverity scans via Redhat. Fortunately they had already filtered them on plausibility and thus the mentioned one might have slipped through. In particular because it was mostly about memory leakage in error paths.
It is a bit strange that this was a one-off patch and never re-applied to newer releases. That part of the code did not receive any serious updated in the last decades.
FWIW: I recall that Coverity once offered us free scans but we would have had to sign an NDA with the requirement to immediately apply fixes only with the consent of Coverity :-(
Shalom-Salam,
Werner
-- The pioneers of a warless world are the youth that refuse military service. - A. Einstein
-------- Forwarded Message -------- Subject: GnuPG Security Advisory for GPGME (T8557,CVE-2026-129975) Date: Fri, 20 Nov 2026 19:01:51 +0100 From: Werner Koch <wk () gnupg org> Reply-To: gnupg-devel () gnupg org To: gnupg-announce () gnupg org CC: info-gnu () gnu org
Hello!
We are pleased to announce the availability of a new GPGME release: version 2.3.1. This version fixes a critical security bug found in all prior versions. We also release a new Gpg4win versions and and GnuPG Desktop and GnuPG VS-Desktop versions which all make use of GPGME.
Description ===========
By using an OpenPGP key containing a crafted very long user id it is possible to trigger a double free. This double free can be used exfiltrate data from applications by sending for example signed data. Exploiting this bug to mount an Remote Code Execution attack (RCE) can't be ruled out. Thus an immediate update is highly suggested.
Our internal ID is T8557 (https://static.dev.gnupg.org/T8557) The CVE-id is CVE-2026-129975.
This vulnerability was discovered by Johan Carlsson and we were informed by GitLab on 2026-11-12. Initially we set 2026-11-25 for a coordinated disclosure; due to the new Ruby2Shell bug GitLab had to update earlier and thus we also disclosed the GPGME bug on 2026-11-20.
The root cause for this bug are two GPGME internal functions to read the status lines and key listings from gpg. Initially a buffer of 1024 bytes is allocated which is reallocated if more space is required. When reallocating the pointer to the new buffer is used by the function but it is only assigned back to the context object at the end of the function. Thus if the function returns early due to an read error or other events the context is not updated and keeps the stale pointer to the freed memory. Eventually the context is released and the memory freed a second time. Due to other allocations in between the common double free checks of memory allocators may not be triggered.
Impact ======
All software using a GPGME version prior to 2.3.0 either as shared libary, DLL, or statically linked is affected. Examples of software using GPGME are
- Gpg4win - GnuPG Desktop - GnuPG VS-Desktop - Most mail clients - Many XMPP clients - Samba - Flatpack
Solution ========
Please update your GPGME shared library to version 2.3.1. If you need a DLL you may take it from from the updated Gpg4win version.
For statically linked binaries remmeber to build them against GPGME 2.3.1.
If for some reasons GPGME can't be updated, you may patch your GPGME version using the attached patch which likley applies cleanly even to very old versions.
There is no need to udpate GPGMEPP or GPGMEQT.
Noteworthy changes in version 2.3.1 (2026-11-19) ================================================ [compared to version 2.2.0]
New constants GPGMEPKMLKEM, GPGMEPKMLDSA, and GPGMEPKDLTHM. Add mappings for algos used bei backends. [rMa85fa49236]
Fix a double free in the status line read code. [T8557,CVE-2026-129975]
Interface changes relative to the 2.2.0 release: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GPGMEPKDLTHM NEW. GPGMEPKMLKEM NEW. GPGMEPKMLDSA NEW.
Release-info: https://dev.gnupg.org/T8427
Getting the Software ====================
Please follow the instructions found at <https://gnupg.org/download/> or read on:
The GPGME source code compressed using BZIP2 and its OpenPGP signature are available here:
https://gnupg.org/ftp/gcrypt/gpgme/gpgme-2.3.1.tar.bz2 (1393k) https://gnupg.org/ftp/gcrypt/gpgme/gpgme-2.3.1.tar.bz2.sig
A sufficient patch to solve the security bug for older versions is attached. Note that version 2.3.0 was never publicly available.
Debian Packages ===============
We also provide Debian style packages for a couple of Debian variants. See https://repos.gnupg.org/deb/gnupg/trixie/ or use the menu to switch to other distros/releases.
Windows Installer =================
A new version of Gpg4win (5.1.2), our full featured Windows installer, including the fixed version of GPGME, the Kleopatra GUI, and a PDF reader has also been released. Head over to https://gpg4win.org/
Checking the Integrity ======================
See https://gnupg.org/download/integritycheck.html
The checksum for gpgme is:
1134a407b50204ee6fb9efaa6e1451c2460e543e gpgme-2.3.1.tar.bz2
Thank you all
Your GnuPG hackers
p.s. This is an announcement only mailing list. Please send replies only to the gnupg-users at gnupg.org mailing list.
List of Release Signing Keys: To guarantee that a downloaded version has not been tampered by malicious entities we provide signature files for all tarballs and binary versions. The keys are also signed by the long term keys of their respective owners. Current releases are signed by one or more of these five keys:
ed25519 2020-08-24 [SC] [expires: 2030-06-30] 6DAA 6E64 A76D 2840 571B 4902 5288 97B8 2640 3ADA Werner Koch (dist signing 2020)
ed25519 2021-05-19 [SC] [expires: 2027-04-04] AC8E 115B F73E 2D8D 47FA 9908 E98E 9B2D 19C6 C8BD Niibe Yutaka (GnuPG Release Key)
rsa3072 2025-05-09 [SC] [expires: 2033-03-03] 3B76 1AE4 E63B F351 9CE7 D63B ECB6 64CB E133 2EEF Alexander Kulbartsch (GnuPG Release Key)
ed25519 2026-07-20 [SC] [expires: 2036-06-30] D02A E491 73BD AD56 E4F8 8223 707E 56D3 DEF4 115C Ingo Klöcker (Release Signing Key 2026)
brainpoolP256r1 2021-10-15 [SC] [expires: 2029-12-31] 02F3 8DFF 731F F97C B039 A1DA 549E 695E 905B A208 GnuPG.com (Release Signing Key 2021)
brainpoolP384r1 2026-02-23 [SC] [expires: 2034-02-23] 1493 269D E61F 124A A69A 316E 3ADF 34EB DBB2 00A4 GnuPG.com (Release Signing Key 2026)
The keys are available at https://gnupg.org/signaturekey.html and in any recently released GnuPG tarball in the file g10/distsigkey.gpg . Note that this mail has been signed by a different key.
Debian Package Signing Key: The new Debian style packages are signed using this key:
ed25519 2025-07-08 [SC] [expires: 2035-07-14] 3209 7B71 9B37 45D6 E61D DA1B 85C4 5AE3 E1A2 B355 GnuPG.org Package Signing Key <package-maintainers () gnupg org>
See the package website (https://repos.gnupg.org/deb/gnupg) for a list of supported distributions and a download link for the key.
-- Arguing that you don't care about the right to privacy because you have nothing to hide is no different from saying you don't care about free speech because you have nothing to say. - Edward Snowden
Attached is the patch for the gpgme package (https://github.com/gpg/gpgme/blob/master/src/engine-gpg.c).
You can credit Johan Carlsson (joaxcar) (https://hackerone.com/joaxcar?type=user) for discovering this flaw and reporting it to GitLab via HackerOne.
The attached diagram walks the full chain: 1. The crafted signature drives readstatus down the early-return-after-realloc path. 2. The freed status buffer is handed back out to a live object, the backing store of a Ruby Array. 3. The attacker overwrites that object's data pointer and length and aims it at the key's address elsewhere in the process, and the key bytes are returned in an ordinary HTTP response.
== The jemalloc environment ==
GitLab's Linux package runs the whole web process on a Ruby interpreter built with jemalloc 5.3.0. Every malloc/realloc/free in the process goes through jemalloc, including those inside libgpgme. The freed status buffer in the report is 6144 bytes, which is a jemalloc small size class, so jemalloc holds it in its per-thread cache (tcache) and reuses it last-in-first-out.
jemalloc's production free path performs no double-free check, so the second free silently returns the chunk to the cache while the first owner is still live. That reuse is deterministic, which is what makes the aliasing reliable.
== Is this really different on glibc and Windows? ==
The defect is allocator-independent. What differs is only how easily the double free becomes exploitable. glibc is not a safety net here, for two independent reasons:
1. Size. glibc’s double-free check (the tcache key, since 2.29) only covers chunks up to ~1032 bytes by default. The 6144-byte buffer is too large, so the check never applies.
2. Access pattern. glibc’s check only catches back-to-back free(p); free(p). This bug is free(p); malloc(...); free(p): the allocation in between clears the tcache key, so the second free isn’t flagged even for small chunks. glibc would give the same aliasing with different grooming.
See tcachedoublefreeverify() in malloc.c (https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c) for more details.
https://ir0nstone.gitbook.io/notes/binexp/heap/tcache-keys has a good explanation of this code.
Per the section of "Security Mechanisms" from https://blackhat.com/docs/us-16/materials/us-16-Yason-Windows-10-Segment-Heap-Internals.pdf, Windows encodes and key-protects its heap metadata and randomizes low-fragmentation heap (LFH) block selection, which makes heap corruption harder to turn into a reliable primitive. It's quite possible that a double free is more likely to crash than to be cleanly exploitable.
== Minimal allocator test ==
This small test shows the pattern directly. It uses a 64-byte (tcache-eligible) chunk so the point is independent of chunk size:
#include <stdio.h> #include <stdlib.h>
int main(void) { char p = malloc(64); printf("p = %p\n", (void )p); #ifdef BACKTOBACK free(p); free(p); / naive double free: glibc aborts here / #else free(p); / 1st free (in the bug: realloc frees it) / char q = malloc(64); / reuse: pulls p back out, clears tcache key / printf("q = %p %s\n", (void )q, q == p ? "(reused p)" : ""); free(p); / 2nd free of p: NOT flagged, p is live as q / char r = malloc(64); / attacker alloc / printf("r = %p %s\n", (void )r, r == q ? "== q >>> ALIASED (two live owners) <<<" : ""); #endif return 0; }
On stock glibc (gcc:13, glibc 2.36) the interleaved free-use-free is not flagged. All three allocations print the same address: p is freed, reused as q, freed again, then handed out once more as r, so q and r are two live pointers to one chunk:
p = 0x150542a0 q = 0x150542a0 (reused p) r = 0x150542a0 == q >>> ALIASED (two live owners) <<<
Rebuilt with -DBACKTOBACK, the naive free(p); free(p) does abort:
free(): double free detected in tcache 2
So glibc's check exists but is bypassed by the intervening allocation, which is exactly the shape readstatus produces. Under jemalloc the same test also aliases and does not abort.
The attached fix for T8557 (write the reallocated pointer back before any early return) removes it at the source for all callers and allocators.
--- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -1494,6 +1494,15 @@ buffer = realloc (buffer, bufsize); if (!buffer) return gpgerrorfromsyserror (); + / Write the reallocated pointer and size back immediately. The + block may have moved, freeing the old one, and several of the + code paths below return early (e.g. on a callback error) + without reaching the update at the end of this function. If we + did not store the new pointer now, gpg->status.buffer would be + left pointing at the already-freed old block and freed a second + time during cleanup. / + gpg->status.buffer = buffer; + gpg->status.bufsize = bufsize; } nread = gpgmeioread (gpg->status.fd[0], @@ -1647,6 +1656,12 @@ buffer = realloc (buffer, bufsize); if (!buffer) return gpgerrorfromsyserror (); + / Write the reallocated pointer and size back immediately; see the + matching comment in readstatus. A preprocess callback below + can return early, so leaving the stale pointer in + gpg->colon.buffer would cause a double free during cleanup. / + gpg->colon.buffer = buffer; + gpg->colon.bufsize = bufsize; } nread = gpgmeioread (gpg->colon.fd[0], buffer+readpos, bufsize-readpos);
CVE-2026-118131
gpgtar 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.
gpgtar 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.
Hi! Author of the talk here.
Cheers!
On 9/14/26 21:28, Clemens Lang wrote: Hi, On 13. Sep 2026, at 02:44, Sam James <sam () gentoo org> wrote:
They also mention another vulnerability in the slides that is in the talk but I've not seen that yet. A PoC is available in their repo [3]. I see two potential vulnerabilities discussed in this talk:
(1) A RCE in gpgsm 2.4.9 when invoked as gpgsm --debug all --import bad.cert, with the bad.cert file at [1]. This is apparently a 0-day, as they say it was not reported to GnuPG. I’m not sure how widely used this code is, and how many users regularly call gpgsm --import with untrusted inputs. The researcher(s) say "if you're here to write a patch for the calc pop: sm/certcheck.c:634 lol” for this problem, which may be a pointer to debugging it.
(2) An integer underflow followed by a buffer overflow in libgcrypt’s RSASSA-PSS verification discussed in slides 38-45 of [2], fixed in libgcrypt commit 0d64fc2 [3] (also reported by somebody using Claude Code) released in (apparently) libgcrypt 1.12.3 without a CVE assigned. The researcher(s) claim this can be used for RCE from the S/MIME verifier and GnuPG with a 53-bit preimage attack (they don’t say which hash algorithm, but I wouldn’t be surprised if SHA-1 is sufficient).
Personally, I’m not all that interested in (1), but (2) seems to be in code that’s widely used, and there should probably be a CVE assigned for it so we can track fixes and backports.
[1]: https://git.gay/49016/gpg-fail-aftermath/src/branch/main/pocs/bad.cert [2]: https://git.gay/49016/gpg-fail-aftermath/src/branch/main/slides.pdf [3]: https://gitlab.com/redhat-crypto/libgcrypt/libgcrypt-mirror/-/commit/0d64fc2
Hi!
On Mon, 14 Sep 2026 21:28, Clemens Lang said: (1) A RCE in gpgsm 2.4.9 when invoked as gpgsm --debug all --import bad.cert, with the bad.cert file at [1]. This is apparently a 0-day, Actually in all versions > 2.2 if you use --debug x509. The result is that you get garbled output on stderr. Using the certificates from their Git repo we have not been able to get more than a segv. That is obvious because the DER is used as printf format string. How it is possible to get a an RCE is not clear to me - at least not with the sample certificate. We need a real reproducers. Maybe the presentation used a custom build. It uses libgcrypt 1.12.4 which is not yet used in any binary we released.
This is the fix:
if (DBGX509) - logdebug(skider, skiderlen, "ski is:"); + logprinthex (skider, skiderlen, "ski is:");
We did not used -Wformat-nonliteral which would have caught it due to gcc problems and distros requiring -Werror. There is one other case where the wrong log function was used but that only affects a certain rare smartcard. BTW, the debug interface is subject to change at any time and should thus not to be used for production. (2) An integer underflow followed by a buffer overflow in libgcrypt’s RSASSA-PSS verification discussed in slides 38-45 of [2], fixed in libgcrypt commit 0d64fc2 [3] (also reported by somebody using Claude CommitDate: Wed Aug 5 14:11:03 2026 +0900
cipher:rsa: Fix verify RSA PSS verify. cipher/rsa-common.c (gcryrsapssverify): Validate EMLEN, before the allocation. -- This issue was found by Anthropic using Claude, and has been reviewed manually by David Korczynski from Ada Logics. Code) released in (apparently) libgcrypt 1.12.3 without a CVE assigned. The researcher(s) claim this can be used for RCE from the S/MIME verifier and GnuPG with a 53-bit preimage attack (they don’t We have no information about this except for the slides. We have not been contacted at all. But the bug used is anyway public for more than a month. From the orginal bug report:
Severity (our reading; we defer the final rating to you) -------------------------------------------------------- We assess the defect as High: an attacker-controlled out-of-bounds heap write (the content, the write length via the hash algorithm, and the underflow offset via the modulus size are all attacker-chosen) reached from the primary public verification API in a default (non-FIPS) build, before any signature parsing. We want to be candid about the deployment precondition, though: the trigger requires the application to verify against a public key whose size it has not vetted (raw signature/key-import-then-verify flows, protocol messages carrying a key). Major consumers such as GnuPG and GnuTLS reject toy-sized RSA keys before libgcrypt sees them, which limits real-world reach; the practical impact ceiling for those is bounded. We leave the final classification to you.
And our reply:
In normal use cases, before the call of gcrypkverify, the key is validated. That's my understanding. Perhaps, we will handle this bug, as a normal bug. (Please note that GnuPG does not use RSA PSS.)
Fixed in libgcrypt 1.12.3 released 2026-08-26
Shalom-Salam,
Werner
-- The pioneers of a warless world are the youth that refuse military service. - A. Einstein
Hi, On 13. Sep 2026, at 02:44, Sam James <sam () gentoo org> wrote:
They also mention another vulnerability in the slides that is in the talk but I've not seen that yet. A PoC is available in their repo [3]. I see two potential vulnerabilities discussed in this talk:
(1) A RCE in gpgsm 2.4.9 when invoked as gpgsm --debug all --import bad.cert, with the bad.cert file at [1]. This is apparently a 0-day, as they say it was not reported to GnuPG. I’m not sure how widely used this code is, and how many users regularly call gpgsm --import with untrusted inputs. The researcher(s) say "if you're here to write a patch for the calc pop: sm/certcheck.c:634 lol” for this problem, which may be a pointer to debugging it.
(2) An integer underflow followed by a buffer overflow in libgcrypt’s RSASSA-PSS verification discussed in slides 38-45 of [2], fixed in libgcrypt commit 0d64fc2 [3] (also reported by somebody using Claude Code) released in (apparently) libgcrypt 1.12.3 without a CVE assigned. The researcher(s) claim this can be used for RCE from the S/MIME verifier and GnuPG with a 53-bit preimage attack (they don’t say which hash algorithm, but I wouldn’t be surprised if SHA-1 is sufficient).
Personally, I’m not all that interested in (1), but (2) seems to be in code that’s widely used, and there should probably be a CVE assigned for it so we can track fixes and backports.
[1]: https://git.gay/49016/gpg-fail-aftermath/src/branch/main/pocs/bad.cert [2]: https://git.gay/49016/gpg-fail-aftermath/src/branch/main/slides.pdf [3]: https://gitlab.com/redhat-crypto/libgcrypt/libgcrypt-mirror/-/commit/0d64fc2
-- Clemens Lang RHEL Crypto Team Red Hat
Hi Sam!
On Mon, 31 Aug 2026 14:09, Sam James said: I can't reach GnuPG's bug tracker at the moment so I can't check the mentioned bugs (if they're even public, I don't know) to see if Fixed bugs are always public. In case we accidently missed to list the restriction, please let us know. We are really soprry about the problems but there is not much we can do. 400Hz SYN-Floods all from different IPs are not easy to handle. Our main goal is currently that we are able to work. We are also working on a solution for at least providing the static pages more reliable. One thing I did see, however, is this from Lukasz Olejnik on X [0]: Doesn't the use of what used to be Twitter not immediatley disqualify a report .-) I reported this security bug to libgcrypt. The bug allowed an attacker to supply a degenerate/small-order Ed25519 public key that passes the initial curve check but triggers a fatal logbug during signature Yes, this was fixed (T8380):
Small-order Ed25519 public keys reach a fatal internal arithmetic assertion Ed25519 verification checks that the supplied public point is on the curve but does not reject identity or other small-order points before scalar multiplication. A public gcrypkverify call with a degenerate attacker-supplied key can consequently reach logbug in the field arithmetic and abort the entire process before signature validity is decided. [...] cipher:rsa:pss: Fix SALT-LENGTH handling.
GnuPG-bug-id: 8377 Reported-by: JEAN Jeremy <Jeremy.Jean () ssi gouv fr> Unchecked PSS salt-length conversion reaches a near-SIZEMAX write
RSA-PSS signing parses the bounded salt-length atom without checking its length, parse endpoint, range, or errno, stores it as unsigned int, and passes it to an encoder taking int. On mainstream two's-complement ABIs, 4294967295 becomes -1; mixed signed/unsigned arithmetic then allocates a small buffer before gcryrandomize receives SIZEMAX, causing deterministic heap corruption through public gcrypksign. [...]
I commented on this:
In theory we could check for this but checking the salt length is a duty of the caller. Anyone who creates a s-expression large enough to reach a range limit has other problems in the code than this. cipher:rsa:pss: Validate the length of hashed input.
GnuPG-bug-id: 8391 RSA-PSS verification copies a full digest from an unchecked short opaque MPI
When RSA-PSS verification is told that the message is already hashed, it obtains an opaque MPI pointer but does not compare the MPI's bit length with the selected digest length. It unconditionally copies hlen bytes. A caller-supplied short opaque value therefore causes an out-of-bounds read before signature verification fails or continues with adjacent bytes. [...]
Callers should validate input data for plausibility. The reproducer would not pass a proper protocol parser. Fixed of course. cipher:rsa:oaep: Validate all-zero PS.
GnuPG-bug-id: 8390 RSA-OAEP decoder accepts nonzero bytes inside the zero padding string
After unmasking OAEP's data block, the decoder verifies lHash and searches for the first 0x01 delimiter. It does not verify that every byte between lHash and that delimiter is zero. A data block containing arbitrary nonzero padding bytes is therefore accepted and its suffix returned as plaintext.
Why it matters
OAEP requires DB to be lHash || PS || 0x01 || M with PS entirely zero. Accepting a larger language of encodings weakens strict ciphertext validation and can become useful if a protocol reveals success through output, errors, or timing. Constructing such an RSA ciphertext without the private key is not established here, so this finding is a decoder correctness flaw rather than a standalone decryption oracle.
All in all we received 26 reports alone from ANSSI but as even the reporter mentioned, the real world attack severity is not critical. Thus we don't consider 1.12.3 a security fix release. There are some bugs which should be fixed to avoid crashes, and thus may lead to DoS. However, 16384 bit RSA keys can also be used for a practical DoS; it all depends on your use case.
Salam-Shalom,
Werner
-- The pioneers of a warless world are the youth that refuse military service. - A. Einstein
From libksba-1.8.0 vs libksba-1.8.1:
@@ -1,3 +1,11 @@ +Noteworthy changes in version 1.8.1 (2026-08-24) [C24/A16/R1] +------------------------------------------------ + + Fix CMS parser to avoid possible infinite loop. [T8361] + + Release-info: https://dev.gnupg.org/T8253
The fix is:
commit 06720f9b16a172404f49089cbb6eb95e4344f562 Author: NIIBE Yutaka <gniibe () fsij org> AuthorDate: Thu Jul 30 14:18:27 2026 +0900 Commit: NIIBE Yutaka <gniibe () fsij org> CommitDate: Thu Jul 30 14:28:38 2026 +0900
Fix CMS parser to avoid possible infinite loop.
src/cms-parser.c (ksbacmsparsesigneddatapart2): Finish when detecting no progress. (ksbacmsparseenvelopeddatapart1): Likewise.
--
Found by AISLE in partnership with Red Hat.
Reported by: Jakub Jelen GnuPG-bug-id: 8361 Signed-off-by: NIIBE Yutaka <gniibe () fsij org>
sam
I can't reach GnuPG's bug tracker at the moment so I can't check the mentioned bugs (if they're even public, I don't know) to see if they have the security impact I assume they might based on the description below.
One thing I did see, however, is this from Lukasz Olejnik on X [0]:
Quoting the X post [0] I mention in the first comment: """ I reported this security bug to libgcrypt. The bug allowed an attacker to supply a degenerate/small-order Ed25519 public key that passes the initial curve check but triggers a fatal logbug during signature verification, aborting the entire process. This enables a reliable denial-of-service against applications verifying attacker-controlled keys/signatures, without requiring a valid signature.
I attach a reproducer: #include <gcrypt.h>
static int triggerAbort(void) { static const unsigned char identity[32] = {0x01}; static const unsigned char zero[32] = {0}; static const unsigned char encodedKey[33] = {0x40, 0x01}; gcrysexpt publicKey; gcrysexpt message; gcrysexpt signature;
gcrycheckversion(NULL); gcrysexpbuild( &publicKey, NULL, "(public-key(ecc(curve Ed25519)(flags eddsa)(q %b)))", (int)sizeof(encodedKey), encodedKey); gcrysexpbuild( &message, NULL, "(data(flags eddsa)(hash-algo sha512)(value %b))", 0, identity); gcrysexpbuild( &signature, NULL, "(sig-val(eddsa(r %b)(s %b)))", 32, identity, 32, zero);
return gcrypkverify(signature, message, publicKey); }
int main(void) { return triggerAbort(); } """
This release fixes that testcase.
Finally, there are some post-release commits which may also be security-relevant:
commit 3ed69d3fb85bac0901dc5b4899d7983cf1f7bbe7 Author: NIIBE Yutaka <gniibe () fsij org> AuthorDate: Fri Aug 28 15:25:22 2026 +0900 Commit: NIIBE Yutaka <gniibe () fsij org> CommitDate: Fri Aug 28 15:25:22 2026 +0900
cipher:rsa:pss: Fix SALT-LENGTH handling.
cipher/pubkey-util.c (gcrypkutildatatompi): For PUBKEYOPSIGN, just like for PUBKEYOPVERIFY, reject larger SALT-LENGTH as the comment says. Fix releasing LIST on error.
--
Fixes-commit: 0bd8137e68c201b6c2290710e348aaf57efa2b2e GnuPG-bug-id: 8377 Reported-by: JEAN Jeremy <Jeremy.Jean () ssi gouv fr> Signed-off-by: NIIBE Yutaka <gniibe () fsij org>
commit 612eb8c157c057feeaf17d30644fd65b05c5ea25 Author: NIIBE Yutaka <gniibe () fsij org> AuthorDate: Thu Aug 27 14:36:35 2026 +0900 Commit: NIIBE Yutaka <gniibe () fsij org> CommitDate: Thu Aug 27 14:40:17 2026 +0900
cipher:rsa:pss: Validate the length of hashed input.
cipher/rsa-common.c (gcryrsapssverify): Reject invalid input.
--
GnuPG-bug-id: 8391 Reported-by: JEAN Jeremy <Jeremy.Jean () ssi gouv fr> Signed-off-by: NIIBE Yutaka <gniibe () fsij org>
commit cf55ce42d0268f9cfd7abc43aa4ec62d2e8c3f53 Author: NIIBE Yutaka <gniibe () fsij org> AuthorDate: Thu Aug 27 13:47:19 2026 +0900 Commit: NIIBE Yutaka <gniibe () fsij org> CommitDate: Thu Aug 27 13:47:19 2026 +0900
cipher:rsa:oaep: Validate all-zero PS.
cipher/rsa-common.c (gcryrsaoaepdecode): Reject non-zero PS.
--
GnuPG-bug-id: 8390 Reported-by: JEAN Jeremy <Jeremy.Jean () ssi gouv fr> Signed-off-by: NIIBE Yutaka <gniibe () fsij org>
[0] https://x.com/lukOlejnik/status/2093348278511219044
-------------------- Start of forwarded message -------------------- To: gnupg-announce () gnupg org Date: Thu, 27 Aug 2026 10:26:55 +0200 Subject: [Announce] Libgcrypt 1.12.3 released From: Werner Koch via Gnupg-announce <gnupg-announce () gnupg org> Cc: Werner Koch <wk () gnupg org>, info-gnu () gnu org Hello!
We are pleased to announce the availability Libgcrypt version 1.12.3. This version fixes a couple of minor bugs, introduces an additional name for an existing curve, and provides some performance improvements.
Noteworthy changes in version 1.12.3 (2026-08-26) [C28/A8/R0] =================================================
Bug fixes:
- Avoid theoretical drive-by loading of netapi32.dll and shell32.dll. [T8375]
- Validate hash algorithm for use with RSA modulus. [T8376]
- Validate parameters of Balloon KDF. [T8374,T8383]
- Validate parallelism of Argon2 KDF. [T8373,T8382]
- Fix parsing quoted parts and CRLF/LFCR in s-expression. [T8371]
- Support BUFLEN check for GCRYMPIFMTSSH. [T8371]
- Fix RSA PSS verify message length checking. [rC0d64fc228f]
- Avoid a NULL ptr deref due to a unsupported genkey flag for ECC. [rC3b259530bc]
- Assert 32 KiB input cap in gcmctrencrypt. [T8387]
- Fix assertion failure in OCB when a buffered block becomes block 65536. [T8389]
- Fix OOB read in IMIT MAC verify of GOST28147. [T8388]
- Fix CMAC block-count truncation for 64 GiB writes. [T8384]
- Fix AEAD spurious byte-counter carry for 4 GiB adds. [T8381]
- Validate all KEM input lengths. [T8259]
- Add length check of DATALEN when parsing s-expression. [T8267]
- Only accept canonical value for S with EdDSA. [T8386]
- Only accept canonical signatures for RSA. [T8392]
- Fix an assertion failure for invalid small-order Ed25519 public keys. [T8380]
- Validate length of supplied receiver public-key length in DHKEM decapsulation. [T8385]
- Use a more strict value for the PKCS#1 minimal frame length. [T8393,T8394]
Performance:
- Use just strong random for the Dilithium signature nonce and the Kyber encapsulation coins. [rC70ecc4e943,rCd7a3acc130]
- Allow internal users to skip fast random poll for ciphers and hashes. [rC75ff7a959b]
- Speedup sntrup761 by defer reduction in polynomial multiplication, reading random with a single call, and reducing freeze helpers w/o division. [rCbaa3a6376b,rC3f2f39bf75,rC317c661b16]
- Avoid byte-wise load/store on RISC-V with Zicclsm. [rCe18a5eb650]
- Use unaligned vector memory access on RSIV-V when supported. [rCecaa3572e1]
- Add Intel SM4 instructions accelerated AVX512 and AVX2 implementation. [rC14d1a882aa,rCdf44b486ba]
- Add Intel SM3 extension implementation. [rC3f94b92e05]
- Add Intel SHA512 extension implementation. [rC0f8a34038d]
Other:
- kyber: Accept and return a seed using the gcrypkgenkey API. [rCe099ccfea9]
- Add curve "ietf25" as alternative to "Curve25519" with exact RFC-8410 semantics. The name "X25519" was already used as an alias, thus this new name. [rC997217e600]
- Add straight-line speculation hardening for function ends. [rC9b684f4a44]
- Fix constant time memequal check for SM2. [T8395]
- Add post-quantum algorithm benchmarking to bench-slope.
- Due to the minor API updates and but with no newer branch released the SO name has been updated.
Release-info: https://dev.gnupg.org/T8223
Note that due to ongoing DoS our dev.gnupg.org server may not be reachable or has been blocked for some IP address ranges.
Download ========
Source code is hosted at the GnuPG FTP server and its mirrors as listed at https://gnupg.org/download/mirrors.html. On the primary server the source tarball and its digital signature are:
https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.3.tar.bz2 https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.3.tar.bz2.sig
or gzip compressed:
https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.3.tar.gz https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.3.tar.gz.sig
In order to check that the version of Libgcrypt you downloaded is an original and unmodified file please follow the instructions found at https://gnupg.org/download/integritycheck.html. In short, you may use one of the following methods:
- Check the supplied OpenPGP signature. For example to check the signature of the file libgcrypt-1.12.3.tar.bz2 you would use this command:
gpg --verify libgcrypt-1.12.3.tar.bz2.sig libgcrypt-1.12.3.tar.bz2
This checks whether the signature file matches the source file. You should see a message indicating that the signature is good and made by one or more of the release signing keys. Make sure that this is a valid key, either by matching the shown fingerprint against a trustworthy list of valid release signing keys or by checking that the key has been signed by trustworthy other keys. See the end of this mail for information on the signing keys.
- If you are not able to use an existing version of GnuPG, you have to verify the SHA-1 checksum. On Unix systems the command to do this is either "sha1sum" or "shasum". Assuming you downloaded the file libgcrypt-1.12.3.tar.bz2, you run the command like this:
sha1sum libgcrypt-1.12.3.tar.bz2
and check that the output matches the first line from the this list:
b4654d75f0e5d0850cc699f02c9b44a06367502f libgcrypt-1.12.3.tar.bz2 e224bd8fe6709ef1471eefed35468fd1f4b9d3cc libgcrypt-1.12.3.tar.gz
You should also verify that the checksums above are authentic by matching them with copies of this announcement. Those copies can be found at other mailing lists, web sites, and search engines.
Copying =======
Libgcrypt is distributed under the terms of the GNU Lesser General Public License (LGPLv2.1+). The helper programs as well as the documentation are distributed under the terms of the GNU General Public License (GPLv2+). The file LICENSES has notices about contributions that require that these additional notices are distributed.
Support =======
For help on developing with Libgcrypt you should read the included manual and if needed ask on the gcrypt-devel mailing list.
In case of problems specific to this release please first check https://dev.gnupg.org/T8223 for updated information.
Please also consult the archive of the gcrypt-devel mailing list before reporting a bug: https://gnupg.org/documentation/mailing-lists.html . We suggest to send bug reports for a new release to this list in favor of filing a bug at https://dev.gnupg.org. If you need commercial support go to https://gnupg.com or https://gnupg.org/service.html .
Please see https://gnupg.org/documentation/security.html for information on how to report security issues and for our threat model.
If you are a developer and you need a certain feature for your project, please do not hesitate to bring it to the gcrypt-devel mailing list for discussion.
Thanks ======
Since 2001 maintenance and development of GnuPG is done by g10 Code GmbH and has mostly been financed by donations. Several full-time employed developers and contractors are working exclusively on GnuPG and closely related software like Libgcrypt, GPGME, Kleopatra and Gpg4win.
Fortunately, and this is still not common with free software, we have now established a way of financing the development while keeping all our software free and freely available for everyone. Our model is similar to the way RedHat manages RHEL and Fedora: Except for the actual binary of the MSI installer for Windows and client specific configuration files, all the software is available under the GNU GPL and other Open Source licenses. Thus customers may even build and distribute their own version of the software as long as they do not use our trademarks GnuPG Desktop® or GnuPG VS-Desktop®.
We like to thank all the nice people who are helping the GnuPG project, be it testing, coding, translating, suggesting, auditing, administering the servers, spreading the word, answering questions on the mailing lists, or helping with donations.
Thank you all
Your Libgcrypt hackers
p.s. This is an announcement only mailing list. Please send replies only to the gcrypt-devel'at'gnupg.org mailing list.
List of Release Signing Keys: To guarantee that a downloaded version has not been tampered by malicious entities we provide signature files for all tarballs and binary versions. The keys are also signed by the long term keys of their respective owners. Current releases are signed by one or more of these five keys:
ed25519 2020-08-24 [SC] [expires: 2030-06-30] 6DAA 6E64 A76D 2840 571B 4902 5288 97B8 2640 3ADA Werner Koch (dist signing 2020)
ed25519 2021-05-19 [SC] [expires: 2027-04-04] AC8E 115B F73E 2D8D 47FA 9908 E98E 9B2D 19C6 C8BD Niibe Yutaka (GnuPG Release Key)
rsa3072 2025-05-09 [SC] [expires: 2033-03-03] 3B76 1AE4 E63B F351 9CE7 D63B ECB6 64CB E133 2EEF Alexander Kulbartsch (GnuPG Release Key)
ed25519 2026-07-20 [SC] [expires: 2036-06-30] D02A E491 73BD AD56 E4F8 8223 707E 56D3 DEF4 115C Ingo Klöcker (Release Signing Key 2026) brainpoolP256r1 2021-10-15 [SC] [expires: 2029-12-31] 02F3 8DFF 731F F97C B039 A1DA 549E 695E 905B A208 GnuPG.com (Release Signing Key 2021)
brainpoolP384r1 2026-02-23 [SC] [expires: 2034-02-23] 1493 269D E61F 124A A69A 316E 3ADF 34EB DBB2 00A4 GnuPG.com (Release Signing Key 2026)
The keys are available at https://gnupg.org/signaturekey.html and in any recently released GnuPG tarball in the file g10/distsigkey.gpg . Note that this mail has been signed by a different key.
Debian Package Signing Key: The new Debian style packages are signed using this key:
ed25519 2025-07-08 [SC] [expires: 2035-07-14] 3209 7B71 9B37 45D6 E61D DA1B 85C4 5AE3 E1A2 B355 GnuPG.org Package Signing Key <package-maintainers () gnupg org>
See the package website (https://repos.gnupg.org/deb/gnupg) for a list of supported distributions and a download link for the key.
-- Arguing that you don't care about the right to privacy because you have nothing to hide is no different from saying you don't care about free speech because you have nothing to say. - Edward Snowden Gnupg-announce mailing list Gnupg-announce () gnupg org http://lists.gnupg.org/mailman/listinfo/gnupg-announce -------------------- End of forwarded message --------------------
CMS (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.
CMS (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.
Alan Coopersmith <alan.coopersmith () oracle com> writes: The common failure is accepting the sender provided length for the authentication tag, and not enforcing the minimum length specified in the RFC - allowing an attacker to specify a one-byte tag length and then use brute force to determine which of the 256 possible values matches the first byte of the actual tag. As with far too many other RFCs, the required skill for them isn't implementing them correctly, it's knowing which bits you need to ignore in order to implement them appropriately. I just checked my code and it hardcodes an allowed MAC length range of 16 ... 64 bytes for RFC 6476 use (Authenticated-Enveloped-Data, but with an explicit MAC), so no matter what any RFC says you can't feed it a MAC value less than 128 bits.
And an additional thought, these are all very high-visibility libraries and therefore obvious targets for checking whether they get it right. Given the failure rate with those, I wonder how many other lesser-known ones also got it wrong?
Peter.
https://blog.calif.io/p/how-to-format-a-ciphertext discusses how the issue that OpenSSL disclosed on June 9 as CVE-2026-34182 similarly affected the PKCS#7 / CMS parsing implementations from WolfSSL, Bouncy Castle, & GnuPG.
The common failure is accepting the sender provided length for the authentication tag, and not enforcing the minimum length specified in the RFC - allowing an attacker to specify a one-byte tag length and then use brute force to determine which of the 256 possible values matches the first byte of the actual tag.
The OpenSSL CVE-2026-34182 was already covered on oss-security in: https://www.openwall.com/lists/oss-security/2026/06/09/15
The WolfSSL CVE-2026-5500 was also already sent here in: https://www.openwall.com/lists/oss-security/2026/04/14/6
https://x.com/califio/status/2068786334844715142 notes: Both Bouncy Castle and GnuPG have acknowledged and fixed the reported issues.
CVE-2026-12802 will be published with Bouncy Castle 1.85. -- -Alan Coopersmith- alan.coopersmith () oracle com Oracle Solaris Engineering - https://blogs.oracle.com/solaris
Libgcrypt before 1.12.2 sometimes allows a heap-based buffer overflow and denial of service via crafted ECDH ciphertext to gcrypkdecrypt.
Last updated 27 May 2026
Last updated 27 May 2026
The following announcement regarding libcrypt security releases was posted to gnupg-announce and related lists today. The forward is unedited except for trimming some footers inserted by mailing list software and the PGP/MIME signature.
----- Forwarded message from Werner Koch via Gnupg-devel <gnupg-devel () gnupg org> -----
Date: Tue, 21 Apr 2026 12:28:09 +0200 From: Werner Koch via Gnupg-devel <gnupg-devel () gnupg org> To: gnupg-announce () gnupg org Cc: Werner Koch <wk () gnupg org>, info-gnu () gnu org Subject: [Announce] [Security fixes] Libgcrypt 1.12.2, 1.11.3, 1.10.x released
Hello!
We are pleased to announce the availability of couple of new Libgcrypt versions: 1.12.2, 1.11.3, and 1.10.4 . It is suggested to use 1.12.2 which is fully compatible with all earlier versions.
This version fixes a security bug [T8211] which can be used used to mount a DoS using ECDH encryption (with NIST, Brainpool, X448, or X25519 curves). Note that GnuPG versions since 2.5.7 are not affected by this bug due to the use of a different encryption API.
Another security bug [T8208] was fixed in the Dilithium signing algorithm which is available since version 1.12.0.
Noteworthy changes in version 1.12.2 (2026-04-15) ====================================
Bug fixes:
- Fix possible ECDH buffer overwrite with zeroes. [T8211]
- Add a missing bounds check to the Dilithium context handling. Reported by Calif.io in collaboration with Claude and Anthropic Research. [T8208]
- Add point validation when using the new KEM interface. [T8212]
Other:
- Fix the dead-code of strongerkeycheck for RSA. [T8171]
For a list of links to commits and bug numbers see the release info at https://dev.gnupg.org/T8114 . However, due to an ongoing AI scraper DDoS the site might not be reachable at all times or from all IPs.
Noteworthy changes in version 1.11.3 (2026-04-21) ====================================
Bug fixes:
- Fix possible ECDH buffer overwrite with zeroes. [T8211]
- Add point validation when using the new KEM interface. [T8212]
- Fix compiler error on NetBSD. [T7633]
- mceliece6688128f: Fix stack overflow crash on win64/wine [rCb17ed8d1af]
- Apply a Kyber patch from upstream. [rC5ba143d51f]
- Use CSIDLCOMMONAPPDATA instead of /etc on Windows. [rC995b870fd2]
- Use secure MPI in gcrympiassignlimbspace. [rC520c699c82]
- Fix a regression with disabled public-key algo for FIPS. [T7338,rCc6e0658004]
Other:
- Handle HAVEBROKENMLOCK for the case of building with ASAN. [T7889]
- Add stack burning for PQC algorithms. [rC289c0a596f]
Release-info: https://dev.gnupg.org/T8232
Noteworthy changes in version 1.10.4 (2026-04-21) ====================================
NOTE: The 1.10 series reaches end-of-life in 6 weeks.
Bug fixes:
- Fix possible ECDH buffer overwrite with zeroes. [T8211]
- Fix AESWRAP padding length check. [T7130]
Other:
- Handle HAVEBROKENMLOCK for the case of building with ASAN. [T7889]
Release-info: https://dev.gnupg.org/T8233
Download ========
Source code is hosted at the GnuPG FTP server and its mirrors as listed at https://gnupg.org/download/mirrors.html. On the primary server the source tarball and its digital signature are:
https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.2.tar.bz2 https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.2.tar.bz2.sig https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.11.3.tar.bz2 https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.11.3.tar.bz2.sig https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.10.4.tar.bz2 https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.10.4.tar.bz2.sig
or gzip compressed:
https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.2.tar.gz https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.2.tar.gz.sig https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.11.3.tar.gz https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.11.3.tar.gz.sig https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.10.4.tar.gz https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.10.4.tar.gz.sig
In order to check that the version of Libgcrypt you downloaded is an original and unmodified file please follow the instructions found at https://gnupg.org/download/integritycheck.html. In short, you may use one of the following methods:
- Check the supplied OpenPGP signature. For example to check the signature of the file libgcrypt-1.12.2.tar.bz2 you would use this command:
gpg --verify libgcrypt-1.12.2.tar.bz2.sig libgcrypt-1.12.2.tar.bz2
This checks whether the signature file matches the source file. You should see a message indicating that the signature is good and made by one or more of the release signing keys. Make sure that this is a valid key, either by matching the shown fingerprint against a trustworthy list of valid release signing keys or by checking that the key has been signed by trustworthy other keys. See the end of this mail for information on the signing keys.
- If you are not able to use an existing version of GnuPG, you have to verify the SHA-1 checksum. On Unix systems the command to do this is either "sha1sum" or "shasum". Assuming you downloaded the file libgcrypt-1.12.2.tar.bz2, you run the command like this:
sha1sum libgcrypt-1.12.2.tar.bz2
and check that the output matches the first line from the this list:
7b8ff21966a0b6e7a735466b9b9b55d9dac9fa87 libgcrypt-1.12.2.tar.bz2 a1b1d5561e7b743e7e4460a49015053da1901124 libgcrypt-1.12.2.tar.gz d252f6b0a62fcacb8f82bcb61440b25d698a0a05 libgcrypt-1.11.3.tar.bz2 a89b597965a76bfbe0ad11e3d6153c3709c0b07e libgcrypt-1.11.3.tar.gz d824efa873ac210e84573564df4a99f4cd5cdf77 libgcrypt-1.10.4.tar.bz2 5a5bb8d4dd69a2c7828dbf31b12df5e21e604971 libgcrypt-1.10.4.tar.gz
You should also verify that the checksums above are authentic by matching them with copies of this announcement. Those copies can be found at other mailing lists, web sites, and search engines.
Copying =======
Libgcrypt is distributed under the terms of the GNU Lesser General Public License (LGPLv2.1+). The helper programs as well as the documentation are distributed under the terms of the GNU General Public License (GPLv2+). The file LICENSES has notices about contributions that require that these additional notices are distributed.
Support =======
For help on developing with Libgcrypt you should read the included manual and if needed ask on the gcrypt-devel mailing list.
In case of problems specific to this release please first check https://dev.gnupg.org/T8114 for updated information.
Please also consult the archive of the gcrypt-devel mailing list before reporting a bug: https://gnupg.org/documentation/mailing-lists.html . We suggest to send bug reports for a new release to this list in favor of filing a bug at https://bugs.gnupg.org. If you need commercial support go to https://gnupg.com or https://gnupg.org/service.html .
Please see https://gnupg.org/documentation/security.html for information on how to report security issues and for our threat model.
If you are a developer and you need a certain feature for your project, please do not hesitate to bring it to the gcrypt-devel mailing list for discussion.
Thanks ======
Since 2001 maintenance and development of GnuPG is done by g10 Code GmbH and has mostly been financed by donations. Several full-time employed developers and contractors are working exclusively on GnuPG and closely related software like Libgcrypt, GPGME, Kleopatra and Gpg4win.
Fortunately, and this is still not common with free software, we have now established a way of financing the development while keeping all our software free and freely available for everyone. Our model is similar to the way RedHat manages RHEL and Fedora: Except for the actual binary of the MSI installer for Windows and client specific configuration files, all the software is available under the GNU GPL and other Open Source licenses. Thus customers may even build and distribute their own version of the software as long as they do not use our trademarks GnuPG Desktop® or GnuPG VS-Desktop®.
We like to thank all the nice people who are helping the GnuPG project, be it testing, coding, translating, suggesting, auditing, administering the servers, spreading the word, answering questions on the mailing lists, or helping with donations.
Thank you all
Your Libgcrypt hackers
p.s. This is an announcement only mailing list. Please send replies only to the gcrypt-devel'at'gnupg.org mailing list.
List of Release Signing Keys: To guarantee that a downloaded version has not been tampered by malicious entities we provide signature files for all tarballs and binary versions. The keys are also signed by the long term keys of their respective owners. Current releases are signed by one or more of these five keys:
ed25519 2020-08-24 [SC] [expires: 2030-06-30] 6DAA 6E64 A76D 2840 571B 4902 5288 97B8 2640 3ADA Werner Koch (dist signing 2020)
ed25519 2021-05-19 [SC] [expires: 2027-04-04] AC8E 115B F73E 2D8D 47FA 9908 E98E 9B2D 19C6 C8BD Niibe Yutaka (GnuPG Release Key)
rsa3072 2025-05-09 [SC] [expires: 2033-03-03] 3B76 1AE4 E63B F351 9CE7 D63B ECB6 64CB E133 2EEF Alexander Kulbartsch (GnuPG Release Key)
brainpoolP256r1 2021-10-15 [SC] [expires: 2029-12-31] 02F3 8DFF 731F F97C B039 A1DA 549E 695E 905B A208 GnuPG.com (Release Signing Key 2021)
brainpoolP384r1 2026-02-23 [SC] [expires: 2034-02-23] 1493 269D E61F 124A A69A 316E 3ADF 34EB DBB2 00A4 GnuPG.com (Release Signing Key 2026)
The keys are available at https://gnupg.org/signaturekey.html and in any recently released GnuPG tarball in the file g10/distsigkey.gpg . Note that this mail has been signed by a different key.
Debian Package Signing Key: The new Debian style packages are signed using this key:
ed25519 2025-07-08 [SC] [expires: 2035-07-14] 3209 7B71 9B37 45D6 E61D DA1B 85C4 5AE3 E1A2 B355 GnuPG.org Package Signing Key <package-maintainers () gnupg org>
See the package website (https://repos.gnupg.org/deb/gnupg) for a list of supported distributions and a download link for the key.
-- The pioneers of a warless world are the youth that refuse military service. - A. Einstein
----- End forwarded message -----
Sam James <sam () gentoo org> wrote: A crafted CMS (S/MIME) EnvelopedData message carrying an oversized wrapped session key can cause a stack buffer overflow in gpg-agent during the PKDECRYPT--kem=CMS handling. This can easily be used for a DoS but, worse, the memory corruption can very likley also be used to mount a remote code execution attack.
A CVE-id has not been assigned. We track this bug as T8044 under https://dev.gnupg.org/T8044. This vulnerability was discovered by: OpenAI Security Research. Their report was received on 2026-01-18; This vulnerability sounds very similar to the just announced OpenSSL vulnerability CVE-2025-15467. That vulnerability was noted as having been discovered Stanislav Fort (Aisle Research).
Is it a coincident that these two issues were detected shortly after one another by different parties?
-Jan
In 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.
In 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.
In GnuPG before 2.5.17, a long signature packet length causes parsesignature to return success with sig->data[] set to a NULL value, leading to a denial of service (application crash).
In 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.
In 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.