3 Credits: Bjoern Jacke <bjoern@j3e.de>
4 Version(s): 4.69 -> 4.87
5 Issue: If several conditions are met, Exim leaks private information
11 If *all* of the following conditions are met
16 * Exim is built with DKIM enabled (default for newer versions)
17 exim -bV | grep 'Support.*DKIM'
22 * Exim uses DKIM signing (transport options dkim_private_key,
23 dkim_domain, and other)
25 * The dkim_private_key option names a file containing the key.
27 exim -bP transports | grep 'dkim_private_key = .'
29 * Exim uses PRDR (transport option hosts_try_prdr) (default
32 exim -bP transports | grep 'hosts_try_prdr = .'
36 Exim uses the LMTP protocol variant for SMTP transport.
38 exim -bP transports | grep 'protocol = lmtp'
43 * Exim transports a multi-recipient message
45 * The destination host supports PRDR
47 the message transport uses LMTP
49 * One or more recipients are rejected after the DATA phase
54 Exim leaks the private DKIM signing key to the log files. Additionally,
55 if the build option EXPERIMENTAL_DSN_INFO=yes is used, the key material
56 is included in the bounce message.
61 Install a fixed Exim version:
66 If you can't install one of the above versions, ask your package
67 maintainer for a version containing the backported fix. On request and
68 depending on our resources we will support you in backporting the fix.
69 (Please note, that Exim project officially doesn't support versions
70 prior the current stable version.)
72 If you think that you MIGHT be affected, we HIGHLY recommend to create
73 a new set of DKIM keys and fade out the previous DKIM key soon to make
74 sure that a possibly leaked DKIM key can not be misused in the future.
80 Disable PRDR in your outgoing transport(s): set hosts_try_prdr to an
83 AND do not use the LMTP protocol variant of the SMTP driver.
88 You can check if you where affected already. The mainlog entries look like this:
90 2016-12-17 09:44:33 10HmaX-0005vi-00 ** baduser@test.ex R=client T=send_to_server H=ip4.ip4.ip4.ip4 [ip4.ip4.ip4.ip4]: PRDR error after -----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAKBgQDXRFf+VhT+lCgFhhSkinZKcFNeRzjYdW8vT29Rbb3NadvTFwAd\n+cVLPFwZL8H5tUD/7JbUPqNTCPxmpgIL+V5T4tEZMorHatvvUM2qfcpQ45IfsZ+Y\ndhbIiAslHCpy4xNxIR3zylgqRUF4+Dtsaqy3a5LhwMiKCLrnzhXk1F1hxwIDAQAB\nAoGAZPokJKQQmRK6a0zn5f8lWemy0airG66KhzDF0Pafb/nWKgDCB02gpJgdw5rJ\nbO7/HI3IeqsfRdYTP7tjfmZtPiPo1mnF7D1rSRspZjOF2yXY/ky7t7c5xChRcSxf\n+69CknwjrfteY9Aj0j6o7N+2w2uvHO+AAq8BHDgXKmPo0SECQQDzQ/glyhNH9tlO\nx+3TTMwwyZUf2mYYosN3Q9NIl3Umz/3+13K5b6Ed6fZvS/XwU55Qf5IBUVj2Fujk\nRv2lbGPpAkEA4okpnzYz5nm1X5WjpJPQPyo8nGEU1A5QfoDbkAvWYvVoYrpWPOx5\nHFpOAHkvSk1Y1vhCUa+zHwiQRBC8OMp6LwJBAOAUK/AjQ792UpWO9DM++pe2F/dP\nZdwrkYG6qFSlrvQhgwXLz5GgkfjMGoRKpDDL1XixCfzMwfVtBPnBqsNGJIECQGYX\nSIGu7L7edMXJ60C9OKluwHf9LGTQuqf4LHsDSq+4Rz3PGhREwePsMqD1/EDxEKt4\noHKtyvyeYF28aQbzARMCQQCRtJlR6vlKhxYL8+xoPrCu3MijKgVruRUcNstXkDZK\nfKQax6vhiMq+0qIiEwLA1wavyLVKZ7Mfag+/4NTcDUVC\n-----END RSA PRIVATE KEY-----\n: 550 PRDR R=<baduser@test.ex> refusal
92 Even if there is no evidence in the existing log files, that a DKIM key
93 leakage happened this might have happened in the past, log files might
94 have been deleted already but a key leak could have ended up via mail
95 bounce in a user mail box