Installing SUPEE-7405 Security Patch to Magento

Installing SUPEE 7405 Security Patch to Magento

With the continuously growing number of hacking attempts on eCommerce sites, finding vulnerabilities in your website to make it secure has become more important than ever. Since hackers launch attacks on sites on popular e-commerce platforms such as Magento (and others), you must take precautionary measures to avoid becoming a victim.

Thankfully, Magento releases security patches to protect a store against vulnerabilities detected in the system. So, if you’re running a Magento store, updating the store as soon as possible is good practice. Or else you might suffer massive data loss. Besides, it is needless to say the damage a hacked site can cause to your reputation among visitors (and customers).

Magento rolled out two new security patches named SUPEE-7405 and SUPEE-7616 this year. But, sadly, 80 percent of Magento stores still haven’t applied the patches. So, if you’ve discovered any security breaches in your e-store, make sure to install the latest available patches that could help improve the security of your Magento store. But if you’re having difficulty implementing the security patches, it would be better to seek the assistance of a reputed Magento e-commerce development company.

This post covers the installation procedure for the latest SUPEE-7405 security patch on your Magento store version 1. x. But let’s have a brief overview of the patch first.

Introduction to SUPEE 7405

SUPEE 7405 security patch was released on January 20, 2016, and provides fixes for vulnerabilities like SQL Injection, Cross-site Scripting, Cross-site Request Forgery (CSRF), etc. These vulnerabilities can steal your critical customer information or access administrator sessions. This security patch is available for Magento versions to and to

Installation of SUPEE-7405 Security Patch

When it comes to installing the SUPEE-7405 security patch, you can accomplish the task with or without SSH. In this part, we’ll discuss both ways to install the patch in question.

Installing SUPEE-7405 With SSH

If you have SSH access to your server, install SUPEE-7405 with SSH. Below are the steps you need to follow to perform the installation:

Step 1 – You can download the SUPEE-7405 patch from the Downloads page:

Or else, install the patch just like any regular Magento upgrade by using the Downloader (which comes with the Magento version).

NOTE: Before installing the SUPEE-7405 patch, install all other patches to keep your site secure from previous patches identified in the Magento version.

Step 2 – You must disable the Magento Compiler on your system before installation. To do so, go to System, Configuration, Tools, and Magento Compiler. Once you’ve opened up the compiler, make sure to clear the compiled cache.

Step 3 – Next, you must verify the Magento version on which your store is running. You can easily check your store version by looking at the following code saved in the Magento Mage.php file:

$ grep -A6 ‘static function getVersionInfo’ app/Mage.php

public static function getVersionInfo()


return array(

‘major’ => ‘1’,

‘minor’ => ‘9’,

‘revision’ => ‘2’,

‘patch’ => ‘2’,


The code determines that the version of your Magento store is

Step 4 – Upload the patch file into the root directory of your Magento install, and then execute it using the below given command:


In the above command, the filename could be something like:

Once you run the above command, a message will be displayed as follows, confirming whether the patch was installed successfully:

The patch was applied/reverted successfully

Step 5: You must verify whether your Magento store is functioning correctly. Also, you’ll have to flush the PHP opcode caches (like APC/XCache/eAccelerator). Keep in mind to flush the cache after applying the patch (or when you restart your web server).

Installing SUPEE-7405 Without SSH

Of course, applying a patch will be easy if you have SSH access. But what if you don’t have such access? In that case, follow the below listed steps to install the SUPEE-7405 patch without SSH:

NOTE: Before you begin the installation process, upgrade your Magento store version to

Step 1: First, make sure to install all the previous patches before installing the new one. Simply put, ensure to install the security patches SUPEE-1533, SUPEE-5344, and SUPEE-5994, to name a few.

Step 2: Next, you’ll need to disable the Magento Compiler on your system. This requires navigating to System, Configuration, Tools, and Magento Compiler from your admin panel.

Step 3: Now, you must download all of the already patched files available in the Github repo (or the ones mentioned in the below table). And then, upload those files to your Magento root directory.

Magento version














NOTE: Make sure to keep a backup of all the files that you are replacing.

Step 4: Empty your cache. Also, flush the PHP opcode caches like APC/XCache/eAccelerator after patching. And at last, test the functionality of your Magento store.


Are you a Magento store owner and concerned about hardening your website’s security? Well, then you must update your version according to the latest security patches, as they come with fixes to deal with vulnerabilities detected in Magento versions. This post will guide you in installing the latest SUPEE-7405 security patch for Magento version 1. x.