{"id":782,"date":"2021-07-23T12:38:02","date_gmt":"2021-07-23T12:38:02","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/cve-2016-1531-exim\/"},"modified":"2021-07-23T12:38:02","modified_gmt":"2021-07-23T12:38:02","slug":"cve-2016-1531-exim","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/cve-2016-1531-exim\/","title":{"rendered":"CVE-2016-1531 Exim"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"background-information\">Background Information<\/h2>\n<p>On Wednesday, March 2, 2016, Exim announced a vulnerability in all versions of the Exim software.<\/p>\n<h2 id=\"impact\">Impact<\/h2>\n<p>According to Exim development:<br \/>\n&gt; All installations having Exim <code>set-uid root<\/code> and using <code>perl_startup<\/code> are vulnerable to a local privilege escalation. Any user who can start an instance of Exim (this is normally <em>any<\/em> user) can gain <code>root<\/code> privileges.<\/p>\n<h2 id=\"releases\">Releases<\/h2>\n<p>The following versions of cPanel &#038; WHM were patched to have the correct version of Exim. All previous versions of cPanel &#038; WHM, including 11.48.x and below, are vulnerable to a <code>set-uid<\/code> attack on Exim.<\/p>\n<ul>\n<li>11.50 \u2014 11.50.5.0<\/li>\n<li>11.52 \u2014 11.52.4.0<\/li>\n<li>11.54 \u2014 11.54.0.18<\/li>\n<li>EDGE  \u2014 11.55.9999.106<\/li>\n<li>CURRENT   \u2014 11.54.0.18<\/li>\n<li>RELEASE   \u2014 11.54.0.18<\/li>\n<li>STABLE    \u2014 11.54.0.18<\/li>\n<\/ul>\n<h2 id=\"how-to-determine-if-your-server-is-up-to-date\">How to determine if your server is up to date<\/h2>\n<p>The updated RPMs provided by cPanel will contain a changelog entry with the CVE number. You can check for this changelog entry with the following command: <\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\">rpm <span style=\"color:#f92672\">-<\/span><span style=\"color:#e6db74\">q --changelog <\/span>exim <span style=\"color:#f92672\">|<\/span> grep CVE<span style=\"color:#f92672\">-<\/span><span style=\"color:#ae81ff\">2016<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#ae81ff\">1531<\/span><\/code><\/pre>\n<\/div>\n<p>The output should resemble below: <\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\"><span style=\"color:#f92672\">-<\/span> Fixes CVE<span style=\"color:#f92672\">-<\/span><span style=\"color:#ae81ff\">2016<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#ae81ff\">1531<\/span><\/code><\/pre>\n<\/div>\n<h2 id=\"what-to-do-if-you-are-not-up-to-date\">What to do if you are not up to date.<\/h2>\n<p>If your server is not running one of the above versions, <strong>update immediately<\/strong>.<\/p>\n<p>To upgrade your server, use WHM\u2019s <em>Upgrade to Latest Version<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; cPanel &gt;&gt; Upgrade to Latest Version<\/em>).<\/p>\n<p>Alternatively, you can run the below commands to upgrade your server from the command line:\n<\/p>\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">2\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">scripts<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">upcp<\/span>\n<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">scripts<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">check_cpanel_rpms<\/span> <span style=\"color:#f92672\">--<\/span><span style=\"color:#a6e22e\">fix<\/span> <span style=\"color:#f92672\">--<\/span><span style=\"color:#a6e22e\">long<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">list<\/span><\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<p>Verify the new Exim RPM was installed: <\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\">rpm <span style=\"color:#f92672\">-<\/span><span style=\"color:#e6db74\">q --changelog <\/span>exim <span style=\"color:#f92672\">|<\/span> grep CVE<span style=\"color:#f92672\">-<\/span><span style=\"color:#ae81ff\">2016<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#ae81ff\">1531<\/span><\/code><\/pre>\n<\/div>\n<p>The output should resemble below: <\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\"><span style=\"color:#f92672\">-<\/span> Fixes CVE<span style=\"color:#f92672\">-<\/span><span style=\"color:#ae81ff\">2016<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#ae81ff\">1531<\/span><\/code><\/pre>\n<\/div>\n<h2 id=\"what-has-changed\">What has changed?<\/h2>\n<p>Exim now provides two configuration options which limit what environment variables are available to Exim and all of its child processes. The variables are <code>keep_environment<\/code> and <code>add_environment<\/code>. For the initial release with this feature, cPanel will be setting the variables as follows in all supported cPanel &#038; WHM systems. These values can be modified in WHM\u2019s <em>Advanced Configuration Editor<\/em> interface if necessary, though we advise caution on adding too many variables to <code>keep_environment<\/code>.<\/p>\n<p>The <code>\/etc\/exim.conf<\/code> file:<\/p>\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">2\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"color:#a6e22e\">keep_environment<\/span> = <span style=\"color:#a6e22e\">X<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">SOURCE<\/span> : <span style=\"color:#a6e22e\">X<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">SOURCE<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">ARGS<\/span> : <span style=\"color:#a6e22e\">X<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">SOURCE<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">DIR<\/span>\n<span style=\"color:#a6e22e\">add_environment<\/span> = <span style=\"color:#a6e22e\">PATH<\/span>=<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">usr<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">local<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">sbin<\/span>::<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">usr<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">local<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">bin<\/span>::<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">sbin<\/span>::<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">bin<\/span>::<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">usr<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">sbin<\/span>::<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">usr<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">bin<\/span>::<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">sbin<\/span>::<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">bin<\/span> <\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<p>If you are still experiencing issues or need additional help, please contact cPanel support.<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Background Information On Wednesday, March 2, 2016, Exim announced a vulnerability in all versions of the Exim software. Impact According to Exim development: &gt; All installations having Exim set-uid root and using perl_startup are vulnerable to a local privilege escalation. Any user who can start an instance of Exim (this is normally any user) can &hellip;<\/p>\n","protected":false},"author":1,"featured_media":783,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/782"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=782"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/782\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/783"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}