RCE in Gnupg

Hacker News by 6 min read 41x views
RCE in Gnupg

Share Post

Werner Koch wk at gnupg.org
Fri Nov 20 19:01:51 CET 2026
Hello! We are pleased to province the preparedness of a new GPGME release: version 2.3.1. This type fixes a *critical safety bug* established in all previous versions. We additionally publish a new Gpg4win versions and and GnuPG Desktop and GnuPG VS-Desktop versions which all create use of GPGME. Description =========== By using an OpenPGP key containing a crafted extremely lengthy person id it is possible to trigger a twice free. This twice liberated can be used exfiltrate data from applications by sending for example signed data. Exploiting this bug to mount an Remote Code Execution assault (RCE) can't be ruled out. Thus an contiguous update is extremely suggested. Our inner ID is T8557 (https://static.dev.gnupg.org/T8557) The CVE-id is CVE-2026-129975. This exposure 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; because of the new Ruby2Shell bug GitLab had to update earlier and thus we additionally disclosed the GPGME bug on 2026-11-20. The base logic for this bug are two GPGME inner functions to peruse the status lines and key listings from gpg. Initially a buffer of 1024 bytes is allocated which is reallocated if additional area is required. When reallocating the pointer to the new buffer is used by the function but it is lone assigned rear to the environment entity at the end of the function. Thus if the function returns first because of an peruse error or other events the environment is not updated and keeps the old pointer to the freed memory. Eventually the environment is released and the memory freed a second time. Due to another allocations in between the common double liberated checks of recollection allocators may not be triggered. Impact ====== All application using a GPGME type previous to 2.3.0 either as shared libary, DLL, or statically connected is affected. Examples of software using GPGME are - Gpg4win - GnuPG Desktop - GnuPG VS-Desktop - Most communication clients - Many XMPP clients - Samba - Flatpack Solution ======== Please update your GPGME shared archive to type 2.3.1. If you need a DLL you may obtain it from from the updated Gpg4win version. For statically connected binaries remmeber to build them against GPGME 2.3.1. If for several reasons GPGME can't be updated, you may place your GPGME version using the attached place which likley applies cleanly equal to very old versions. There is no need to udpate GPGMEPP or GPGMEQT. Noteworthy changes in type 2.3.1 (2026-11-19) ================================================ [compared to type 2.2.0] * New constants GPGME_PK_MLKEM, GPGME_PK_MLDSA, and GPGME_PK_DLTHM. Add mappings for algos used bei backends. [rMa85fa49236] * Fix a twice liberated in the position row peruse code. [T8557,CVE-2026-129975] * Interface changes related to the 2.2.0 release: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GPGME_PK_DLTHM NEW. GPGME_PK_MLKEM NEW. GPGME_PK_MLDSA NEW. Release-info: https://dev.gnupg.org/T8427 Getting the Software ==================== Please prosecute the instructions established at <https://gnupg.org/download/> or read on: The GPGME origin code compressed using BZIP2 and its OpenPGP signature are accessible 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 adequate place to resolve the safety bug for older versions is attached. Note that type 2.3.0 was never publically available. Debian Packages =============== We additionally provision Debian manner packages for a brace of Debian variants. See https://repos.gnupg.org/deb/gnupg/trixie/ or use the list to switch to another distros/releases. Windows Installer ================= A new type of Gpg4win (5.1.2), our complete featured Windows installer, including the fixed type of GPGME, the Kleopatra GUI, and a PDF reader has additionally been released. Head complete to https://gpg4win.org/ Checking the Integrity ====================== See https://gnupg.org/download/integrity_check.html The checksum for gpgme is: 1134a407b50204ee6fb9efaa6e1451c2460e543e gpgme-2.3.1.tar.bz2 *Thank you all* Your GnuPG hackers p.s. This is an notice lone mailing list. Please dispatch replies lone to the gnupg-users at gnupg.org mailing list. * List of Release Signing Keys: To justify that a downloaded type has not been tampered by malicious entities we provision signature records for all tarballs and binary versions. The keys are additionally signed by the lengthy term keys of their corresponding 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 accessible at https://gnupg.org/signature_key.html and in any lately released GnuPG tarball in the document g10/distsigkey.gpg . Note that this communication has been signed by a distinct key. * Debian Package Signing Key: The new Debian manner 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 at gnupg.org> See the bundle website (https://repos.gnupg.org/deb/gnupg) for a list of supported distributions and a download nexus for the key. -- Arguing that you don't attention concerning the correct to privacy since you have nothing to conceal is no distinct from saying you don't attention concerning free speech since you have nothing to say. - Edward Snowden -------------- next part -------------- A non-text attachment was scrubbed... Name: openpgp-digital-signature.asc Type: application/pgp-signature Size: 284 bytes Desc: not available URL: <https://lists.gnupg.org/pipermail/gnupg-announce/attachments/20261120/b5262e6e/attachment.sig> 


More data concerning the Gnupg-announce mailing list
Other Article Hacker News
↑
Close Right Ads
Close Left Ads