First of all open up the command prompt (or SSH into your server if your applying the patch remotely). Change the current directory to your Magento store root folder (this is one of ours, you will need to change to suit):
Just to be safe, run:
To list the current directory structure, it should list files such as index.php, cron.php and get.php as well as directories such as app, skin, var etc. If these are not shown then you are probably in the wrong directory.
Next we need to download the correct patch:
Community Edition 22.214.171.124 through 126.96.36.199
Community Edition 188.8.131.52
Community Edition 184.108.40.206 through 220.127.116.11
If your system doesn’t have wget on there (i.e. Mac OSX) replace wget with curl -O, so your commands become:
curl -O http://www.magentocommerce.com/downloads/assets/18.104.22.168/CE_22.214.171.124-126.96.36.199.patch
curl -O http://www.magentocommerce.com/downloads/assets/188.8.131.52/CE_184.108.40.206.patch
curl -O http://www.magentocommerce.com/downloads/assets/220.127.116.11/CE_18.104.22.168-22.214.171.124.patch
The above commands download the correct patch file from http://www.magentocommerce.com and store them in the current directory with the name CE_xxx.patch where xxx is the version it applies to.
It’s now time to patch Magento, run the following command (replacing xxx with the version number in your patch):
patch -p0 < CE_xxx.patch
This runs through the patch and applies the security updates to the affected files (lib/Zend/XmlRpc/Response.php and lib/Zend/XmlRpc/Request.php). You can then test the Magento store to ensure everything still works, if you need to you can reverse the patch using the following command:
patch -R -p0 < CE_xxx.patch
Once you are finished you can remove the patch file using the following command:
where xxx is the version it applies to.