Page MenuHome GnuPG
Feed Advanced Search

May 31 2018

werner closed T4000: GnuPG does not check encrypted messages for well-formed composition as Resolved.
May 31 2018, 1:14 PM · gnupg (gpg22), Bug Report

May 30 2018

werner edited projects for T4000: GnuPG does not check encrypted messages for well-formed composition, added: gnupg (gpg22); removed gpgme.

I need to revise my statement (partly because fixing gpgme would be quite complicated). Marcus is right in that using the the literals_seen counter is the straightforward way to get this right. And it will fix it also for non-GPGME applications.

May 30 2018, 9:51 PM · gnupg (gpg22), Bug Report
werner triaged T4000: GnuPG does not check encrypted messages for well-formed composition as High priority.

[We do things in the public unless explicitly requested by a bug reporter writing to security.]

May 30 2018, 8:48 PM · gnupg (gpg22), Bug Report
werner changed the visibility for T4000: GnuPG does not check encrypted messages for well-formed composition.
May 30 2018, 8:34 PM · gnupg (gpg22), Bug Report
patrick updated subscribers of T4000: GnuPG does not check encrypted messages for well-formed composition.
May 30 2018, 6:08 PM · gnupg (gpg22), Bug Report
patrick added a comment to T4000: GnuPG does not check encrypted messages for well-formed composition.

I have changed visibility of the bug, as I think you can do a lot more with this than Marcus imagined.

May 30 2018, 6:04 PM · gnupg (gpg22), Bug Report
patrick changed the visibility for T4000: GnuPG does not check encrypted messages for well-formed composition.
May 30 2018, 5:58 PM · gnupg (gpg22), Bug Report
werner added a comment to T4002: gpg-error.h uses c11 reserved word "noreturn".

Do you have a need for doing a new release immediately?

May 30 2018, 5:23 PM · Bug Report
werner changed the status of T4002: gpg-error.h uses c11 reserved word "noreturn" from Open to Testing.
May 30 2018, 5:22 PM · Bug Report
werner added a comment to T3997: After tampering, a file still decrypts and returns incorrect plaintext, rather than giving an error.

The set of information returned by gpg is too large to be mapped on an exit code. Thus we have status codes and the gpgv tool.

May 30 2018, 11:50 AM · Bug Report
werner added a project to T3998: moving signed or encrypted mails in Outlook fails: gpgol.
May 30 2018, 11:44 AM · Duplicate, gpgol, Bug Report, gpg4win
marcus added a comment to T4000: GnuPG does not check encrypted messages for well-formed composition.

The impact is low to our current understanding, that's why I didn't report it as a security vulnerability. I tried to use this for signatures, but GnuPG has more verification for signatures, so it doesn't work there as far as I can see. So that's good.
If you allow for a BADMDC, you can easily downgrade the content of an encrypted data packet from, for example, compressed to private packet type, and then you don't even need the public key, just an encrypted message. The MDC will notice this, and since Efail the clients should have strict MDC checking, so I didn't include that variation in my report.
By the way, there are other clients I didn't test which are probably affected, such as kmail, claws, gpgtools.
I only have Outlook 2007 and no funds to buy software I don't use, as I am unemployed and using up my savings. So, next time I won't be able to do the testing, sorry!

May 30 2018, 10:34 AM · gnupg (gpg22), Bug Report
aheinecke added a comment to T4000: GnuPG does not check encrypted messages for well-formed composition.

Can you help me understand what the impact of this is? AFAIK Back in 2007 the problem was that it could be faked that data looked like it was signed.

May 30 2018, 9:53 AM · gnupg (gpg22), Bug Report
werner triaged T4002: gpg-error.h uses c11 reserved word "noreturn" as High priority.

Oh dear, adding new keywords which have not been reserved in the past was a bad idea by C11. This will eventually require fixes at lot of places because the noreturn attribute is widely used ( other common headers may include the noreturn header as well).

May 30 2018, 8:40 AM · Bug Report

May 29 2018

eoincreedon_gmail.com created T4003: Trusted-certs folder not being taken into account where System folders are read.
May 29 2018, 6:49 PM · dirmngr, S/MIME, Bug Report
slandden updated the task description for T4002: gpg-error.h uses c11 reserved word "noreturn".
May 29 2018, 6:35 PM · Bug Report
slandden created T4002: gpg-error.h uses c11 reserved word "noreturn".
May 29 2018, 6:34 PM · Bug Report
luc added a comment to T3997: After tampering, a file still decrypts and returns incorrect plaintext, rather than giving an error.

The primary function of those other tools is not securely encrypting data. If the message is too large to keep in memory at once, then there is indeed no choice to process it as a stream, but users should be aware of this. Perhaps a flag can be used, along the lines of --stream-without-verification? The man page could explain: "GPG computes an MDC over the whole message, so it can only check at the end whether the message was tampered with. This flag can be used to stream the output, so that the entire message does not have to be kept in memory. You must check the exit status to verify that decryption was successful and that the message was not tampered with, because with this flag, the data returned by GPG may be incorrect or even malicious. If the exit status is zero, then the MDC is correct and the message was not tampered with."

May 29 2018, 5:13 PM · Bug Report
patrick added a comment to T4000: GnuPG does not check encrypted messages for well-formed composition.

This looks similar to the "multiple plaintext" issue that we had in Feb. / March 2007.

May 29 2018, 4:18 PM · gnupg (gpg22), Bug Report
wojnilowicz added a comment to T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW.

Maybe the off_t mess comes from following line

May 29 2018, 3:05 PM · Windows, C++, gpgme, Bug Report
marcus added a comment to T4000: GnuPG does not check encrypted messages for well-formed composition.

I would also recommend that GPGME does a sanity check on the status fd output for people with new GPGME but old GnuPG binary.

May 29 2018, 1:55 PM · gnupg (gpg22), Bug Report
marcus created T4000: GnuPG does not check encrypted messages for well-formed composition.
May 29 2018, 1:34 PM · gnupg (gpg22), Bug Report
NTSIMM added a comment to T3998: moving signed or encrypted mails in Outlook fails.

Sadly deselecting a mail doesn't help always. Most of the time I cannot move the mails even then. So the only reliable workaround is to deactivate the Addin - what cannot be the goal, at least it is not mine ;-).

May 29 2018, 1:23 PM · Duplicate, gpgol, Bug Report, gpg4win
JJworx added a comment to T3998: moving signed or encrypted mails in Outlook fails.

This is well-known and can't be changed without a lot of hassle. There is a work-around:

  • Deselect the mail by selecting another mail.
  • Drag-n-drop the mail to be moved.
May 29 2018, 12:45 PM · Duplicate, gpgol, Bug Report, gpg4win
NTSIMM created T3998: moving signed or encrypted mails in Outlook fails.
May 29 2018, 12:29 PM · Duplicate, gpgol, Bug Report, gpg4win
aheinecke changed the status of T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW from Open to Testing.

The gpgme c api already had a convenience function gpgme_data_rewind to do data.seek (0, SEEK_SET); As this is by far the most common seek operation. KMymoney also only uses such seeks.

May 29 2018, 9:29 AM · Windows, C++, gpgme, Bug Report
werner closed T3997: After tampering, a file still decrypts and returns incorrect plaintext, rather than giving an error as Invalid.

Sorry. gpg is a real software and not some memory hog. real software runs under Unix and complies with the Unix rules, where one of them is to allow the use in a pipeline. All standard Unix tools have this feature and you need to check the error code ("set -e" in the simplest case). It is not different from gzip, tar, curl, rsync, ...

May 29 2018, 8:20 AM · Bug Report

May 28 2018

luc created T3997: After tampering, a file still decrypts and returns incorrect plaintext, rather than giving an error.
May 28 2018, 8:55 PM · Bug Report
wojnilowicz added a comment to T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW.

Uhm, yeah I would be willing to help. But I tried to understand it and don't see the problem.

So what the error tells us is that "off_t" is defined as long in the declaration but as something else in the definition.

But how can that be? data.cpp includes the data.h header so they both should have the same definition of off_t.

The only thing I could imagine is that something which is included in the cpp but not in the header undef's off_t and defines it to something else.

Or more likely that the archive was compiled with a different definition of off_t then what is included in the headers when kmymoney is built.

Are you using the same mingw version as the buildchain which compiles the gpgme binary?

May 28 2018, 6:52 PM · Windows, C++, gpgme, Bug Report
aheinecke claimed T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW.

Uhm, yeah I would be willing to help. But I tried to understand it and don't see the problem.

May 28 2018, 4:43 PM · Windows, C++, gpgme, Bug Report
werner triaged T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW as Normal priority.

You are not cross-compiling. This is not suggested and I don't have the environment to replicate this. Maybe @aheinecke can help.

May 28 2018, 2:53 PM · Windows, C++, gpgme, Bug Report
werner merged T3995: make --force-mdc the default into T3981: MDC failures should always trigger fatal error.
May 28 2018, 2:40 PM · Bug Report
werner merged task T3995: make --force-mdc the default into T3981: MDC failures should always trigger fatal error.
May 28 2018, 2:40 PM · gnupg, Bug Report
wojnilowicz created T3996: Undefined reference to GpgME::Data::seek(long, int) on MinGW.
May 28 2018, 12:28 PM · Windows, C++, gpgme, Bug Report
gniibe changed the status of T3980: gpg-agent: error allocating thread attributes when starting as daemon from Open to Testing.
May 28 2018, 2:11 AM · npth, Bug Report

May 25 2018

jhirsch added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

Thanks, that allowed npth to make successfully without the unsatisfied symbols.

May 25 2018, 7:48 PM · npth, Bug Report
dkg added a comment to T3995: make --force-mdc the default.

please see the branch dkg/fix-T3995 with rG3308d5e3f4e25dce5168c4a7cb2f545424c6d185

May 25 2018, 6:34 PM · gnupg, Bug Report
dkg created T3995: make --force-mdc the default.
May 25 2018, 3:48 PM · gnupg, Bug Report
gniibe added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

Apparently, the check of sem_init function was not done (in config.log).
Could you please make sure to update npth/configure by npth/autogen.sh?

May 25 2018, 12:31 AM · npth, Bug Report

May 24 2018

jhirsch added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

config.log is attached.

May 24 2018, 4:05 PM · npth, Bug Report
aheinecke added a comment to T3975: Special characters not displayed anymore in Outlook.

The best way to send signed or encrypted mail is by using PGP/MIME which is the default.

May 24 2018, 8:12 AM · gpgol, Bug Report
gniibe added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

Could you please put the config.log of npth with the patch?
The intention of change is: we need to link -lpthread and -lrt

May 24 2018, 3:17 AM · npth, Bug Report

May 23 2018

baluui added a comment to T3975: Special characters not displayed anymore in Outlook.

Thank you for your answer.

May 23 2018, 9:53 PM · gpgol, Bug Report
grawity created T3994: import-clean drops a seemingly valid subkey.
May 23 2018, 7:46 PM · gnupg (gpg22), Bug Report
jhirsch added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

I tried with the updated patch, but I still see the same unsatisfied symbols during link. I verified that the patch was in place in configure.ac and also patched a clean version of configure.ac so that there would be only one instance of hpux in the case statement:

May 23 2018, 7:46 PM · npth, Bug Report
aheinecke added a parent task for T3978: GpgOL: Problem with automatic resolution of ambigous keys: T3925: Gpg4win 3.1.2.
May 23 2018, 8:14 AM · Bug Report, gpgol
BenM added a comment to T3981: MDC failures should always trigger fatal error.

It works (or rather fails to decrypt) as expected, though an update to the HOWTO and examples is also needed, not a major change.

May 23 2018, 6:19 AM · Bug Report
BenM added a comment to T3981: MDC failures should always trigger fatal error.

Since 1.4 has been previously cited as the thing to use when accessing data encrypted with v2 keys and the like, it's hard to argue in favour of backporting a fix for an issue which will explicitly override the one major use case (maybe one of two if we count headless systems still) for keeping 1.4 in play. If you were going to fix it and and potentially kill the use of it for accessing old archived data then why not just skip the backport and EOL the branch? Less work, same result.

May 23 2018, 6:02 AM · Bug Report
gniibe added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

I realized that the test case is already there.
I'm not sure the reason why make check for npth works well on HP-UX (before the my patch). It uses npth_attr_init (hence, pthread_attr_init) in tests/t-thread.c.
Perhaps, libtool is clever enough to detect -lpthread into src/libnpth.la (dependency_libs), I suppose.

May 23 2018, 4:25 AM · npth, Bug Report
gniibe added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

Thanks for your testing, it's near. Here is updated patch:


I think that HP-UX is just like *BSD for pthread and POSIX semaphore.
It is also good to add a test case. I will.

May 23 2018, 4:09 AM · npth, Bug Report

May 22 2018

jhirsch added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

Rebuilding npth results in three unsatisfied symbols:

May 22 2018, 5:18 PM · npth, Bug Report
Kobbema added a comment to T3989: cannot work with new encryption panel.

Yes, I checked and I can indeed add multiple keys.
No, that does not solve my problem.
Because I absolutely need to be able to see exactly what I am doing and in this respect the previous version (as it still is on Ubuntu) is much, much better.

May 22 2018, 9:32 AM · kleopatra, Bug Report
aheinecke claimed T3975: Special characters not displayed anymore in Outlook.

Thanks for your report.

May 22 2018, 9:18 AM · gpgol, Bug Report
aheinecke claimed T3990: Kleopatra change expiry date on year doesn't work.

Thanks. I'll look into it. It's possible that in our tests we only changed the complete date.

May 22 2018, 9:14 AM · gpg4win, kleopatra, Bug Report
aheinecke claimed T3991: gpgol stops decrypting/verifying in a certain situation.

Thanks for the report.

May 22 2018, 9:13 AM · gpgol, gpg4win, Bug Report
aheinecke renamed T3992: Kleopatra: Bad handling of non standard detached ASCII-armored signature from Cannot verify detached ASCII-armored signature to Kleopatra: Bad handling of non standard detached ASCII-armored signature.
May 22 2018, 9:09 AM · kleopatra, Bug Report, gpg4win
aheinecke claimed T3992: Kleopatra: Bad handling of non standard detached ASCII-armored signature.

Thanks for the report. This is indeed a bug.

May 22 2018, 9:09 AM · kleopatra, Bug Report, gpg4win
aheinecke triaged T3989: cannot work with new encryption panel as Normal priority.

If you click on the grey question mark in the "Entry field" when adding recipients you get a dialog that lists all keys and also allows for multiple selection.

May 22 2018, 8:59 AM · kleopatra, Bug Report
gniibe added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

Thanks for config.log of GnuPG. I think that I located the problem; While gpg-agent should be linked to -lpthread, it was not. The configure variable NPTH_LIBS in config.log doesn't have -lpthread. Thus, pthread_* are linked to the ones of stub, and it resulted the error.

May 22 2018, 6:46 AM · npth, Bug Report

May 19 2018

NHarvey created T3992: Kleopatra: Bad handling of non standard detached ASCII-armored signature.
May 19 2018, 4:22 AM · kleopatra, Bug Report, gpg4win

May 18 2018

Breach created T3991: gpgol stops decrypting/verifying in a certain situation.
May 18 2018, 11:27 PM · gpgol, gpg4win, Bug Report
Breach updated the task description for T3990: Kleopatra change expiry date on year doesn't work.
May 18 2018, 11:00 PM · gpg4win, kleopatra, Bug Report
Breach created T3990: Kleopatra change expiry date on year doesn't work.
May 18 2018, 10:59 PM · gpg4win, kleopatra, Bug Report
jhirsch added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

I have uploaded config.log. Let me know if you need any additional information/files. Thanks!

May 18 2018, 3:55 PM · npth, Bug Report
werner added projects to T3949: pinentry looks for gpg-error-config and libassuan-config in ${SYSROOT}/bin but they are in ${SYSROOT}/usr/bin: pinentry, Cross-Compiler.
May 18 2018, 11:28 AM · Cross-Compiler, pinentry, Bug Report
werner added a project to T3975: Special characters not displayed anymore in Outlook: gpgol.
May 18 2018, 11:28 AM · gpgol, Bug Report
werner added a project to T3989: cannot work with new encryption panel: kleopatra.
May 18 2018, 11:27 AM · kleopatra, Bug Report
Kobbema created T3989: cannot work with new encryption panel.
May 18 2018, 9:28 AM · kleopatra, Bug Report
gniibe claimed T3980: gpg-agent: error allocating thread attributes when starting as daemon.

Thanks for quick feedback.
Yes, it is a build problem, which should be handled by configure + make.
Could you please upload the build log here, so that I can check it to fix configure.ac+Makefile.am?

May 18 2018, 8:37 AM · npth, Bug Report

May 17 2018

jhirsch added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

Thanks. That appears to be the exact issue. I was able to get around it with export LD_PRELOAD as indicated in the man page. Any ideas on how to address it in the make? This is what I see when I do an ldd on gpg-agent:

May 17 2018, 10:53 PM · npth, Bug Report
gniibe added a comment to T3980: gpg-agent: error allocating thread attributes when starting as daemon.

ENOSYS means it's linked to stub.
http://nixdoc.net/man-pages/HP-UX/man5/pthread_stubs.5.html
Somehow the build process may be wrong for the gpg-agent executable.

May 17 2018, 8:22 PM · npth, Bug Report
torando added projects to T3621: OpenPGP Encrypted message (decryption not possible): gpgme, Info Needed.

In another report, it turned out to be, that with a 64 bit outlook and GnuPG not installed in the standard location it came to this error. ( T3988 )

May 17 2018, 11:26 AM · Info Needed, gpgme, gpgol, Bug Report
werner changed the status of T3981: MDC failures should always trigger fatal error from Open to Testing.

The path I now took is to keep 2.2 as is but change GPGME to trigger a decryption failure if no MDC is used. This is under the assumption that old scripts using gpg 2.2 or gpg 2.0 do not use GPGME.

May 17 2018, 9:29 AM · Bug Report
aheinecke closed T3987: error: Folder is open in GnuPG's OpenPGP tool as Resolved.

Please update to Gpg4win-3.1.1 this issue should be resolved. There was a similar issue with Gpg4win 3 T2670 but it has been resolved.

May 17 2018, 7:59 AM · Bug Report, gpg4win
aheinecke added a project to T3746: Outlook 2016 - Cannot display signed email in sent folder: Info Needed.

We've analyzed another report of this and the problem turned out to be that with a 64 bit outlook and GnuPG not installed in the standard location it came to this error. ( T3988 )

May 17 2018, 7:50 AM · Info Needed, gpgol, Bug Report, gpg4win

May 16 2018

Dhinu created T3987: error: Folder is open in GnuPG's OpenPGP tool.
May 16 2018, 7:05 PM · Bug Report, gpg4win

May 15 2018

werner added a comment to T3981: MDC failures should always trigger fatal error.

You mean because they mentioned 64 bit block ciphers? In the original mail exchange in November about "we have broken the MDC" which we disproved and they confirmed that it is an Enigmail or Thunderbird problem:

May 15 2018, 4:17 PM · Bug Report
andrewgdotcom added a comment to T3981: MDC failures should always trigger fatal error.

Actually this is not related to the mentioned CVE because the issue we are talking about has not been tested by them.

May 15 2018, 1:23 PM · Bug Report
werner triaged T3982: libgcrypt.m4 is not multilib friendly as Normal priority.
May 15 2018, 1:18 PM · libgcrypt, Bug Report
aheinecke closed T3973: GpgOL causes Outlook 2016 crash with specific message as Resolved.

Thanks for testing. A new Gpg4win release will come soon.

May 15 2018, 1:18 PM · gpg4win, gpgol, Bug Report
aheinecke added a parent task for T3973: GpgOL causes Outlook 2016 crash with specific message: T3925: Gpg4win 3.1.2.
May 15 2018, 1:17 PM · gpg4win, gpgol, Bug Report
werner triaged T3981: MDC failures should always trigger fatal error as High priority.
May 15 2018, 1:16 PM · Bug Report
aheinecke removed a parent task for T3888: Kleopatra: S/MIME trees in keylist are minimized on refresh: T3925: Gpg4win 3.1.2.
May 15 2018, 1:16 PM · Bug Report, gpg4win, kleopatra
aheinecke removed a parent task for T3887: Kleopatra: Not finishing commands: T3925: Gpg4win 3.1.2.
May 15 2018, 1:16 PM · Bug Report, gpg4win, kleopatra
werner added a comment to T3981: MDC failures should always trigger fatal error.

Actually this is not related to the mentioned CVE because the issue we are talking about has not been tested by them.

May 15 2018, 1:16 PM · Bug Report
werner added a comment to T3981: MDC failures should always trigger fatal error.

Done in master with rGd1431901f014 and we are discussing on Jabber whether we can risk to do that in 2.2 too. It might be that another ortion than --ignore-mdc-error would be better for 2.2 but that would differ than from master.

May 15 2018, 1:14 PM · Bug Report
andrewgdotcom updated the task description for T3981: MDC failures should always trigger fatal error.
May 15 2018, 12:36 PM · Bug Report
EvaSDK created T3982: libgcrypt.m4 is not multilib friendly.
May 15 2018, 12:15 PM · libgcrypt, Bug Report
andrewgdotcom created T3981: MDC failures should always trigger fatal error.
May 15 2018, 10:56 AM · Bug Report
Breach added a comment to T3973: GpgOL causes Outlook 2016 crash with specific message.

Thanks. Confirmed - no crash with the beta5 dll.

May 15 2018, 10:38 AM · gpg4win, gpgol, Bug Report
aheinecke changed the status of T3973: GpgOL causes Outlook 2016 crash with specific message from Open to Testing.

Argh! From the log it looks very much like another incarnation of the issue fixed in T3960 (Same underlying reason)

May 15 2018, 9:19 AM · gpg4win, gpgol, Bug Report
ktalik added a comment to T3972: 100% CPU usage endles loop of gpg --list-keys.

Good idea, but I've already tried it. Tried once again and freeze still occurs.

May 15 2018, 8:29 AM · gnupg (gpg22)
Breach added a comment to T3973: GpgOL causes Outlook 2016 crash with specific message.

Hi and thanks. Yes, I consistently reproduce. Here's the log file.

May 15 2018, 6:38 AM · gpg4win, gpgol, Bug Report

May 14 2018

gouttegd added a comment to T3972: 100% CPU usage endles loop of gpg --list-keys.

Okay, so maybe this has nothing to do with T3748 then…

May 14 2018, 11:30 PM · gnupg (gpg22)
werner triaged T3980: gpg-agent: error allocating thread attributes when starting as daemon as High priority.

That comes directly from pthread_attr_init - need to check what's special on HP/UX here.

May 14 2018, 10:10 PM · npth, Bug Report
jhirsch created T3980: gpg-agent: error allocating thread attributes when starting as daemon.
May 14 2018, 9:29 PM · npth, Bug Report
ktalik added a comment to T3972: 100% CPU usage endles loop of gpg --list-keys.

Above command freezes with 100% CPU, too.

May 14 2018, 11:17 AM · gnupg (gpg22)
aheinecke triaged T3973: GpgOL causes Outlook 2016 crash with specific message as Normal priority.

Thanks for your report!

May 14 2018, 9:00 AM · gpg4win, gpgol, Bug Report
aheinecke created T3978: GpgOL: Problem with automatic resolution of ambigous keys.
May 14 2018, 8:36 AM · Bug Report, gpgol

May 12 2018

Breach added a project to T3973: GpgOL causes Outlook 2016 crash with specific message: gpg4win.
May 12 2018, 6:40 PM · gpg4win, gpgol, Bug Report