We have a new documentation site for cPanel & WHM! You can find our new documentation site at docs.cpanel.net.
We will continue to maintain our API documentation on this server.
RELEASED TO PUBLIC
On Tuesday, May 3 2016, ImageMagick announced a vulnerability in all versions of the ImageMagick software. ImageMagick is a software package commonly used by web services to process images.
One of the reported vulnerabilities can potentially be exploited for remote code execution (RCE).
ImageMagick has not released a fix, but plans to publish a new version of ImageMagic with the fixes soon.
cPanel normally releases all builds at once in order to limit the ability to reverse engineer fixes. However, this vulnerability is already wildly known and we have seen reports of it's use. In this instance, we plan to release builds as soon as they become available.
At this time the following builds are available:
The updated RPMs provided by cPanel will contain a
changelog entry with a CVE number. To view this
changelog entry run the following command:
The output should resemble below:
If your server is not running one of the above versions, update immediately.
To upgrade your server, navigate to WHM's Upgrade to Latest Version interface (WHM >> Home >> cPanel >> Upgrade to Latest Version) and click Click to Upgrade.
To upgrade cPanel from the command line run the following commands:
To verify the new
cpanel-ImageMagick RPM was installed run the following command:
The output should resemble the following:
We will publish builds for 11.52, and 11.50 as soon as they become available. We will attempt use the WHM Autofixer to update the
policy.xml file. For 11.52, and 11.50, you can manually mitigate this vulnerability with the following instructions.
Open the following file:
Update the file to match the policy example below to disable the EPHEMERAL, URL, HTTPS, MVG, and MSL coders.
If you have a local installation of ImageMagick, we recommend that you use a policy file to disable the vulnerable ImageMagick coders. The global policy for ImageMagick is usually found in the
/etc/ImageMagick/policy.xml file. The following
policy.xml example disables the coders EPHEMERAL, URL, HTTPS, MVG, and MSL:
If you are still experiencing issues or need additional help, contact cPanel support.