Page MenuHome GnuPG
Feed Advanced Search

Nov 26 2025

gniibe closed T7056: GPGme 1.23.2 has Undefined symbols: "strcasecmp(char const*, char const*)" on Mac OS X 10.4.11, PPC Tiger as Wontfix.

Here is my analysis.

Nov 26 2025, 2:09 AM · gpgme, MacOS, Bug Report

Nov 25 2025

gniibe added a comment to T7873: Decrypt to foo.gpg.part files and rename.

The extension .part is used by Mozilla/Firefox. Curl uses .tmp. Is that OK for Windows machine to use .part?

Nov 25 2025, 5:41 AM · Feature Request, gnupg26
gniibe closed T7694: GPGME: gpgme_io_spawn issues, a subtask of T7660: GPGME invocation by cri-o hangs on gpgme_op_verify, as Resolved.
Nov 25 2025, 5:16 AM · golang, gpgme, Bug Report
gniibe closed T7694: GPGME: gpgme_io_spawn issues as Resolved.
Nov 25 2025, 5:16 AM · gpgme, Bug Report
gniibe added a comment to T7894: libgcrypt, scute, gpgrt/argparse, gnupg/dirmngr: Hard-coded /etc.

I examined the code of gnupg_sysconfdir in gnupg/common/homedir.c, if we could factor out things to gpgrt, so that something like gpgrt_fconcat with GPGRT_SYSCONFDIR can be implemented.

Nov 25 2025, 3:10 AM · libgcrypt, scute, gpgrt, Bug Report
gniibe committed rG32a3e5f83bbb: common:dotlock: Escalate a warning message up to INFO from DEBUG. (authored by gniibe).
common:dotlock: Escalate a warning message up to INFO from DEBUG.
Nov 25 2025, 2:25 AM
gniibe committed rGaab29b128693: kbx:sqlite: Don't call dotlock_release. (authored by gniibe).
kbx:sqlite: Don't call dotlock_release.
Nov 25 2025, 2:25 AM
gniibe committed rGe4f20ba10a6a: commond:dotlock: Remove support of use with glib. (authored by gniibe).
commond:dotlock: Remove support of use with glib.
Nov 25 2025, 2:25 AM
gniibe committed rG68dcfec91b90: common:dotlock:w32: Minor fixes for Windows. (authored by gniibe).
common:dotlock:w32: Minor fixes for Windows.
Nov 25 2025, 2:25 AM
gniibe committed rGd4e40e2a8adc: common:dotlock: Comment fixes. (authored by gniibe).
common:dotlock: Comment fixes.
Nov 25 2025, 2:25 AM

Nov 21 2025

gniibe added a comment to T7873: Decrypt to foo.gpg.part files and rename.

When --output option is used and the user uses temporary file and is ready for checking an error, that is, it's already prepared, it's redundant and useless, indeed.

Nov 21 2025, 7:23 AM · Feature Request, gnupg26
gniibe added a comment to T7720: w32: Synchronous spawning gpg-agent/dirmngr/keyboxd.

Let me explain about the change rG57affc4e98ab.

Nov 21 2025, 6:44 AM · gnupg, Feature Request, Bug Report

Nov 20 2025

gniibe committed rG216a695ced83: agent: Use SHADOW_INFO to silence warnings. (authored by gniibe).
agent: Use SHADOW_INFO to silence warnings.
Nov 20 2025, 7:52 AM
gniibe changed the status of T7720: w32: Synchronous spawning gpg-agent/dirmngr/keyboxd, a subtask of T7716: gpgrt:w32: Synchronous spawning detached process, with standard input and standard error, from Open to Testing.
Nov 20 2025, 7:07 AM · gpgrt, Feature Request, Bug Report
gniibe changed the status of T7720: w32: Synchronous spawning gpg-agent/dirmngr/keyboxd from Open to Testing.

Applied the change to master: rG57affc4e98ab: common,agent,dirmngr,kbx:w32: Synchronous spawning daemon process.

Nov 20 2025, 7:07 AM · gnupg, Feature Request, Bug Report
gniibe closed T7716: gpgrt:w32: Synchronous spawning detached process, with standard input and standard error as Resolved.
Nov 20 2025, 7:06 AM · gpgrt, Feature Request, Bug Report
gniibe changed the status of T7629: gcc 15 warns about -Wunterminated-string-initialization in gnupg from Open to Testing.

I applied a change with GPGRT_ATTR_NONSTRING to master, since 2.6 branch now requires newere gpgrt.
Fix is rGcad79e542d85: agent,common,dirmngr,tests: Silence warnings of a compiler.

Nov 20 2025, 7:04 AM · gnupg, Bug Report
gniibe added a comment to T7716: gpgrt:w32: Synchronous spawning detached process, with standard input and standard error.

For GnuPG, applied the change to master: rG57affc4e98ab: common,agent,dirmngr,kbx:w32: Synchronous spawning daemon process.

Nov 20 2025, 7:00 AM · gpgrt, Feature Request, Bug Report
gniibe committed rG57affc4e98ab: common,agent,dirmngr,kbx:w32: Synchronous spawning daemon process. (authored by gniibe).
common,agent,dirmngr,kbx:w32: Synchronous spawning daemon process.
Nov 20 2025, 6:59 AM
gniibe changed the status of T7909: Other bugs reported by 49016 et al. from Open to Testing.

t-stringhelp change was pushed by rG8a95e963d53a: common: Fix the test of t-stringhelp.
For int-truncation, I pushed the change rGbcd87ea2b2da: misc: Validate the value on the use of strtol.

Nov 20 2025, 6:33 AM · gnupg, g10code, Bug Report
gniibe changed the status of T7909: Other bugs reported by 49016 et al., a subtask of T7900: Cleartext Signature Forgery in GnuPG, from Open to Testing.
Nov 20 2025, 6:33 AM · Not A Bug, OpenBSD, gnupg
gniibe committed rGcad79e542d85: agent,common,dirmngr,tests: Silence warnings of a compiler. (authored by gniibe).
agent,common,dirmngr,tests: Silence warnings of a compiler.
Nov 20 2025, 6:31 AM
gniibe committed rGbcd87ea2b2da: misc: Validate the value on the use of strtol. (authored by gniibe).
misc: Validate the value on the use of strtol.
Nov 20 2025, 6:31 AM
gniibe committed rC4e65996bb870: mpi: Introduce mpi_tfr and use it for point_tfr. (authored by gniibe).
mpi: Introduce mpi_tfr and use it for point_tfr.
Nov 20 2025, 2:24 AM
gniibe committed rD6ca8a2bc9e32: Make it clear that GnuPG for RISC OS is 1.4, just like VMS version. (authored by gniibe).
Make it clear that GnuPG for RISC OS is 1.4, just like VMS version.
Nov 20 2025, 1:31 AM
gniibe committed rDb348850f25e5: Fix the birth day of libgcrypt 1.11. (authored by gniibe).
Fix the birth day of libgcrypt 1.11.
Nov 20 2025, 1:31 AM

Nov 19 2025

gniibe committed rE26d740f940b3: spawn:posix: Rename the field to ENVP to avoid a build issue. (authored by gniibe).
spawn:posix: Rename the field to ENVP to avoid a build issue.
Nov 19 2025, 6:34 AM
gniibe committed rEa9fc729253ee: argparse: Use SYSCONFDIR for /etc. (authored by gniibe).
argparse: Use SYSCONFDIR for /etc.
Nov 19 2025, 6:34 AM
gniibe changed the status of T7631: Building libassuan on AIX warns about missing function declarations. from Open to Testing.
Nov 19 2025, 6:13 AM · AIX, libassuan, Bug Report

Nov 18 2025

gniibe committed rGaa8e0cc9f331: po: Update Japanese Translation. (authored by gniibe).
po: Update Japanese Translation.
Nov 18 2025, 8:59 AM
gniibe added a comment to F33097212: temp-output-then-rename-20251117.patch.

At line 133 shouldn't we have used iobuf_cancel there?

Nov 18 2025, 8:08 AM
gniibe changed the status of T7658: Okular: Dirmngr startup timeout on signature validation from Open to Testing.

I believe this bug was fixed by T7829. Please confirm with new gpgwin-5.0.0-beta.

Nov 18 2025, 1:04 AM · gpd5x (gpd-5.0.0), Bug Report, okular

Nov 17 2025

gniibe updated subscribers of T7873: Decrypt to foo.gpg.part files and rename.

@ikloecker says that Kleo already support this feature. (I didn't know that.)
So, compatibility flag to switch on/off the feature would be needed,
or this feature is not needed in GnuPG at all.

Nov 17 2025, 10:26 AM · Feature Request, gnupg26
gniibe added a comment to T7873: Decrypt to foo.gpg.part files and rename.

Here is my attempt to do that:

Nov 17 2025, 8:19 AM · Feature Request, gnupg26

Nov 14 2025

gniibe committed rGd1cde3e36463: build: Silence automake about escaping #. (authored by gniibe).
build: Silence automake about escaping #.
Nov 14 2025, 7:36 AM
gniibe committed rG8a95e963d53a: common: Fix the test of t-stringhelp. (authored by gniibe).
common: Fix the test of t-stringhelp.
Nov 14 2025, 6:35 AM

Nov 12 2025

gniibe added a comment to T7894: libgcrypt, scute, gpgrt/argparse, gnupg/dirmngr: Hard-coded /etc.

I checked the code under gnupg/dirmngr. Those are no harm.

Nov 12 2025, 6:31 AM · libgcrypt, scute, gpgrt, Bug Report

Nov 11 2025

gniibe added a comment to T7905: Radix64 Line-Truncation Enabling Polyglot Attacks.

For someone who considers the rejection is the requirement of the spec., here is a change:

Nov 11 2025, 7:00 AM · gnupg, g10code, Bug Report
gniibe updated the task description for T7905: Radix64 Line-Truncation Enabling Polyglot Attacks.
Nov 11 2025, 6:59 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7902: OpenPGP Cleartext Signature Framework.

Here is a revised patch (hopefully the last one):

Nov 11 2025, 6:37 AM · Not A Bug, OpenPGP, FAQ, gnupg
gniibe committed rG62b8bf2f3905: gpg: Fix armored input parsing. (authored by gniibe).
gpg: Fix armored input parsing.
Nov 11 2025, 6:30 AM
gniibe committed rG9ef87bcdb034: dirmngr: Fix OCSP check. (authored by gniibe).
dirmngr: Fix OCSP check.
Nov 11 2025, 3:45 AM
gniibe committed rGff3068341869: agent: Fix a memory leak. (authored by Sorah Fukumori <her@sorah.jp>).
agent: Fix a memory leak.
Nov 11 2025, 3:45 AM

Nov 10 2025

gniibe added a comment to F31795841: armor-validation-one-pass-sig-2025-11-05.patch.

We can use:

Nov 10 2025, 10:11 AM
gniibe added a member for libassuan: gniibe.
Nov 10 2025, 2:22 AM
gniibe removed a member for nGPH: gniibe.
Nov 10 2025, 2:21 AM

Nov 6 2025

gniibe changed the status of T7893: GnuPG: Decryption fails if the pinentry dialog for the first tried recipient is canceled from Open to Testing.

That's my mistake with KEM API.

Nov 6 2025, 6:14 AM · gnupg26, gnupg
gniibe committed rG12c0b94fcb5f: agent: Fix wiping memory in PKDECRYPT command. (authored by gniibe).
agent: Fix wiping memory in PKDECRYPT command.
Nov 6 2025, 6:12 AM
gniibe added a comment to T7873: Decrypt to foo.gpg.part files and rename.

Here is my idea to implement the feature:
(1) Extend struct iobuf_struct to have a field of temporary output (of int), just after real_fname.

  • OUTPUTFILE: When it's 1, it means that a temporary output file generated with real_fname original suffix removed and appended .tmp

(2) Modify get_output_file in plaintext.c and make_outfile_name in openfile.c, so that OUTPUTFILE semantics above is used and the field in iobuf_struct is marked accordingly.
(3) Modify proc_encrypted in mainproc.c so that it can rename .tmp file to the OUTPUTFILE or it can remove it when failure, when the field is active.

Nov 6 2025, 3:54 AM · Feature Request, gnupg26
gniibe added a comment to T7633: libgcrypt fails to build on NetBSD due to the systems bswap32 macro defintion..

Applied to 1.11 branch.

Nov 6 2025, 2:33 AM · NetBSD, libgcrypt, Bug Report
gniibe added projects to T7882: `rsa-sha2` signature values are improperly truncated : gpgagent, ssh.
Nov 6 2025, 2:07 AM · ssh, gpgagent, Bug Report
gniibe closed T7194: gnupg_ -> gpgrt_ : Pipe API as Resolved.
Nov 6 2025, 1:55 AM · gpgrt, gnupg
gniibe added a comment to T7649: gnupg: Use KEM interface for encryption/decryption.

Let me explain the background.

Nov 6 2025, 12:57 AM · gnupg26

Nov 5 2025

gniibe added a comment to T7894: libgcrypt, scute, gpgrt/argparse, gnupg/dirmngr: Hard-coded /etc.

For gpgrt/argparse this could be an option (to remove hard-coded /etc):

Nov 5 2025, 7:44 AM · libgcrypt, scute, gpgrt, Bug Report
gniibe added a comment to T7902: OpenPGP Cleartext Signature Framework.

Here is a patch (revised since the email of mine):

Nov 5 2025, 6:26 AM · Not A Bug, OpenPGP, FAQ, gnupg
gniibe claimed T7909: Other bugs reported by 49016 et al..
Nov 5 2025, 6:11 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7909: Other bugs reported by 49016 et al..

For t-stringhelp.c, here is a fix.

Nov 5 2025, 6:11 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7909: Other bugs reported by 49016 et al..

For

openpgp_oid_from_str has a wrong memory-safety assumption

Nov 5 2025, 6:00 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7909: Other bugs reported by 49016 et al..

For Integer Overflow in literals_seen, I think that the claim is wrong.
When literals_seen becomes two, GnuPG stops processing to return an error.
It's not possible for GnuPG to keep processing.

Nov 5 2025, 3:51 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7909: Other bugs reported by 49016 et al..

For Integer Truncation of Arguments report, since the int value is limited to one-octet value, we could add check for the length of input when we use strtol.

Nov 5 2025, 3:30 AM · gnupg, g10code, Bug Report
gniibe closed T7845: gpgsm: Use KEM interface for encryption as Resolved.
Nov 5 2025, 2:25 AM · gnupg26
gniibe closed T7845: gpgsm: Use KEM interface for encryption, a subtask of T7649: gnupg: Use KEM interface for encryption/decryption, as Resolved.
Nov 5 2025, 2:25 AM · gnupg26
gniibe closed T7811: gpgsm: Use KEM interface for decryption, a subtask of T7649: gnupg: Use KEM interface for encryption/decryption, as Resolved.
Nov 5 2025, 2:24 AM · gnupg26
gniibe closed T7811: gpgsm: Use KEM interface for decryption as Resolved.
Nov 5 2025, 2:24 AM · gnupg26

Nov 4 2025

gniibe updated the task description for T7909: Other bugs reported by 49016 et al..
Nov 4 2025, 7:32 AM · gnupg, g10code, Bug Report
gniibe created T7909: Other bugs reported by 49016 et al..
Nov 4 2025, 7:18 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7908: GnuPG Accepts Path Separators and Path Traversals in Literal Data "Filename" Field.

Added a compatibility flag in: rGad0c6c33c3d6: gpg: Do not use a default when asking for another output filename.

Nov 4 2025, 7:08 AM · gnupg, Bug Report
gniibe created T7908: GnuPG Accepts Path Separators and Path Traversals in Literal Data "Filename" Field.
Nov 4 2025, 7:07 AM · gnupg, Bug Report
gniibe created T7907: Encrypted Message Malleability Checks are Incorrectly Enforced Causing Plaintext Recovery Attacks.
Nov 4 2025, 7:01 AM · Not A Bug, gnupg
gniibe added a comment to T7906: Memory Corruption in ASCII-Armor Parsing.

Fixed in rG115d138ba599: gpg: Fix possible memory corruption in the armor parser.

Nov 4 2025, 6:57 AM · gnupg, Bug Report
gniibe created T7906: Memory Corruption in ASCII-Armor Parsing.
Nov 4 2025, 6:56 AM · gnupg, Bug Report
gniibe created T7905: Radix64 Line-Truncation Enabling Polyglot Attacks.
Nov 4 2025, 6:50 AM · gnupg, g10code, Bug Report
gniibe added a comment to T7904: GnuPG may downgrade digest algorithm to SHA1.

Fixed in rGdb9705ef594d: gpg: Avoid potential downgrade to SHA1 in 3rd party key signatures.

Nov 4 2025, 6:46 AM · gnupg, Bug Report
gniibe created T7904: GnuPG may downgrade digest algorithm to SHA1.
Nov 4 2025, 6:45 AM · gnupg, Bug Report
gniibe added a comment to T7903: Multiple Plaintext Attack on Detached PGP Signatures in GnuPG.

Fixed in rG8abc320f2a75: gpg: Error out on unverified output for non-detached signatures.

Nov 4 2025, 6:43 AM · Not A Bug, OpenPGP, gnupg
gniibe created T7903: Multiple Plaintext Attack on Detached PGP Signatures in GnuPG.
Nov 4 2025, 6:41 AM · Not A Bug, OpenPGP, gnupg
gniibe added a comment to T7901: Cleartext Signature Forgery in NotDashEscaped header implementation in GnuPG.

This feature should be only enabled with a compatibility flag.

Nov 4 2025, 6:28 AM · gnupg, Bug Report
gniibe added a comment to T7902: OpenPGP Cleartext Signature Framework.

Mitigation would be: adding context validation in add_onepass_sig function, which checks WHAT of armored input.

Nov 4 2025, 6:27 AM · Not A Bug, OpenPGP, FAQ, gnupg
gniibe created T7902: OpenPGP Cleartext Signature Framework.
Nov 4 2025, 6:25 AM · Not A Bug, OpenPGP, FAQ, gnupg
gniibe created T7901: Cleartext Signature Forgery in NotDashEscaped header implementation in GnuPG.
Nov 4 2025, 6:13 AM · gnupg, Bug Report
gniibe shifted T7900: Cleartext Signature Forgery in GnuPG from the S1 Public space to the Restricted Space space.
Nov 4 2025, 6:07 AM · Not A Bug, OpenBSD, gnupg
gniibe created T7900: Cleartext Signature Forgery in GnuPG.
Nov 4 2025, 6:07 AM · Not A Bug, OpenBSD, gnupg
gniibe changed the status of T7882: `rsa-sha2` signature values are improperly truncated from Open to Testing.

Pushed the revised change to master.

Nov 4 2025, 5:56 AM · ssh, gpgagent, Bug Report
gniibe committed rGc7e0ec12609b: agent:ssh: Fix RSA signature handling for newer spec. (authored by gniibe).
agent:ssh: Fix RSA signature handling for newer spec.
Nov 4 2025, 3:34 AM

Nov 3 2025

gniibe closed T7138: Windows (Semi-hosted environment): filename and network access, a subtask of T6508: Port GnuPG to 64-bit Windows, as Resolved.
Nov 3 2025, 3:41 AM · Windows 64, Feature Request, gnupg26
gniibe closed T7138: Windows (Semi-hosted environment): filename and network access as Resolved.

Fixed in 2.5.13.

Nov 3 2025, 3:41 AM · gnupg, Bug Report
gniibe added a comment to T7649: gnupg: Use KEM interface for encryption/decryption.

@onickolay The change was originally introduced for PQC stuff. And then, we applied use of KEM API (of libgcrypt) also for ordinary ECDH, so, it affected ordinary ECDH encryption (between 2.5.9 and 2.5.12).
The intention is follow the recommendation of use of KEM. IIUC, next FIPS certification will require use of KEM, possibly.

Nov 3 2025, 1:37 AM · gnupg26

Oct 30 2025

gniibe claimed T7882: `rsa-sha2` signature values are improperly truncated .

Thank you for your report.

Oct 30 2025, 6:18 AM · ssh, gpgagent, Bug Report
gniibe created T7894: libgcrypt, scute, gpgrt/argparse, gnupg/dirmngr: Hard-coded /etc.
Oct 30 2025, 3:06 AM · libgcrypt, scute, gpgrt, Bug Report
gniibe added a comment to T7889: libgcrypt: HAVE_BROKEN_MLOCK.

Note that:
If we consider backporting this to 1.10/1.11 branch, we also need to apply: rCdef1d4ea8f66: random:jent: Fix build with address sanitizer.

Oct 30 2025, 2:31 AM · backport, libgcrypt, Bug Report
gniibe added a comment to T7889: libgcrypt: HAVE_BROKEN_MLOCK.

@jukivili
Thanks for your feedback.

Oct 30 2025, 2:27 AM · backport, libgcrypt, Bug Report
gniibe updated the task description for T7889: libgcrypt: HAVE_BROKEN_MLOCK.
Oct 30 2025, 2:21 AM · backport, libgcrypt, Bug Report

Oct 29 2025

gniibe added a comment to T7889: libgcrypt: HAVE_BROKEN_MLOCK.

For the initial attempt, I push: rCfe06287003a1: secmem: Handle HAVE_BROKEN_MLOCK for the case with ASAN.
This is better than nothing.

Oct 29 2025, 7:48 AM · backport, libgcrypt, Bug Report
gniibe committed rCdef1d4ea8f66: random:jent: Fix build with address sanitizer. (authored by gniibe).
random:jent: Fix build with address sanitizer.
Oct 29 2025, 7:47 AM
gniibe committed rCfe06287003a1: secmem: Handle HAVE_BROKEN_MLOCK for the case with ASAN. (authored by gniibe).
secmem: Handle HAVE_BROKEN_MLOCK for the case with ASAN.
Oct 29 2025, 7:47 AM
gniibe claimed T7889: libgcrypt: HAVE_BROKEN_MLOCK.
Oct 29 2025, 7:36 AM · backport, libgcrypt, Bug Report
gniibe created T7889: libgcrypt: HAVE_BROKEN_MLOCK.
Oct 29 2025, 7:36 AM · backport, libgcrypt, Bug Report

Oct 23 2025

gniibe committed rC0ceca9993f5a: random:jent: Fix for jent_rng_is_initialized. (authored by gniibe).
random:jent: Fix for jent_rng_is_initialized.
Oct 23 2025, 10:05 AM

Oct 22 2025

gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

Still, there is a fundamental problem with keydb locking.

  • It only assures no-data-corruption.
  • When a process doing write access, another process reading the resource may encounter a problem (inconsistent data read), since data could be changed while accessing.
    • Currently, write access may occur with keybox compress, this means that users are not safe to invoke multiple gpg/gpgsm simultaneously (to be sure).
      • It would be: only keybox compress when users explicitly ask.
    • We could introduce a lock to read access... BUT naively adding a lock (both for read and write or read-multiple-write-one) results possible deadlock in gpgsm
      • in gpgsm, gpgsm_walk_cert_chain and gpgsm_validate_chain access the resource of keydb in a way of:
        • While it has a handle kh, by find_up routine, it may call keydb_store_cert by callback routine; The callback does write access to the resource opening another handle.
        • Currently, it works because of no lock for read access and keydb_store_cert appends data at the end.
Oct 22 2025, 9:20 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe committed rG0d887e6bea46: po: Update Japanese Translation. (authored by gniibe).
po: Update Japanese Translation.
Oct 22 2025, 5:00 AM