Bug 492756

Summary: Cannot decrypt packets with hybrid cipher without using symmetric passphrase
Product: [Applications] kleopatra Reporter: liu.songquan
Component: generalAssignee: Andre Heinecke <aheinecke>
Status: CONFIRMED ---    
Severity: normal CC: kdepim-bugs, kloecker, mutz
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description liu.songquan 2024-09-07 14:58:56 UTC
SUMMARY
Cannot decrypt packets with hybrid cipher without using symmetric passphrase, even if the available private key exists.

STEP TO REPRODUCE
Encrypt a file using both a symmetric passphrase and public key(s) simultaneously.

OBSERVED RESULT
If the passphrase is not inputted, kleopatra will interrupt the decryption process.
If the passphrase is inputted but wrong, kleopatra will provide an message “Bad passphrase”, while the log indicates the file has been successfully decrypted using a private key.

SOFTWARE/OS VERSIONS
kleopatra 3.2.2.231170 (Gpg4win-4.3.1)
Windows 10 Version 2009 (x86_64)
Comment 1 Ingo Klöcker 2024-10-15 20:49:06 UTC
Confirmed on Linux except that entering a wrong symmetric passphrase yields success for me. Only cancelling the symmetric passphrase or entering an empty symmetric passphrase yields a cancelled or failed decryption.

This is now also tracked in the GnuPG bug tracker under https://dev.gnupg.org/T7339.