a95875e7950944e5b546eb83f86e50fea0c2b921
[exim-website.git] / templates / static / doc / CVE-2016-1531.txt
1 Security fix for CVE-2016-1531
2 ==============================
3
4 All installations having Exim set-uid root and using 'perl_startup' are
5 vulnerable to a local privilege escalation. Any user who can start an
6 instance of Exim (and this is normally *any* user) can gain root
7 privileges.
8
9 New options
10 -----------
11
12 We had to introduce two new configuration options:
13
14     keep_environment =
15     add_environment =
16
17 Both options are empty per default. That is, Exim cleans the complete
18 environment on startup. This affects Exim itself and any subprocesses,
19 as transports, that may call other programs via some alias mechanisms,
20 as routers (queryprogram), lookups, and so on.
21
22 ** THIS MAY BREAK your existing installation **
23
24 If both options are not used in the configuration, Exim issues a warning
25 on startup. This warning disappears if at least one of these options is
26 used (even if set to an empty value).
27
28 keep_environment should contain a list of trusted environment variables.
29 (Do you trust PATH?). This may be a list of names and REs.
30
31     keep_environment = ^LDAP_ : FOO_PATH
32
33 To add (or override) variables, you can use add_environment:
34
35     add_environment = <; PATH=/sbin:/usr/sbin
36
37
38 New behaviour
39 -------------
40
41 Now Exim changes it's working directory to / right after startup,
42 even before reading it's configuration. (Later Exim changes it's working
43 directory to $spool_directory, as usual.)
44
45 Exim only accepts an absolute configuration file path now, when using
46 the -C option.
47
48
49 Thank you for your understanding.