Note: This is a historical reference, not a current security baseline. Magento 1 is end-of-life.
September 15, 2017: Community Edition 1.9.3.6 and SUPEE-10266 Security Enhancements – 9/15/2017.
If you have SSH access, it would be more simple to apply the patch via SSH. If you have no SSH access to apply the patch, you can simply upgrade your installation to Magento 1.9.3.6 version which includes all the latest security patches (SUPEE-5344, SUPEE-5994, SUPEE-6285, SUPEE-6482, SUPEE-6788, SUPEE-7405, SUPEE-8788, SUPEE-9652, SUPEE-9667, SUPEE-10266, SUPEE-10336). If Magento upgrade is not possible in the moment due to some reason you still can apply the patch via FTP/sFTP upload as shown in this article. If you wish to save time and have us to install these patches for you, simply click here to order installation.

Preparations

    Applying Magento patches via FTP/sFTP or FileManager / File Upload

    To apply patches in this way we simply replace changed files. This way can not be used blindly if you or your developers have changed any core Magento files (which is a big no-no, by the way). Such changes should be re-applied to patched files, or you loose these changes. The following files are changed by SUPEE-10266 (v1 for 1.9.3.4 relased on September 15, 2017):
    app/code/core/Mage/Admin/Model/Session.php
    app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Notice.php
    app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php
    app/code/core/Mage/Adminhtml/Controller/Action.php
    app/code/core/Mage/Adminhtml/Model/LayoutUpdate/Validator.php
    app/code/core/Mage/Adminhtml/controllers/CustomerController.php
    app/code/core/Mage/Adminhtml/controllers/Newsletter/QueueController.php
    app/code/core/Mage/Adminhtml/controllers/Newsletter/TemplateController.php
    app/code/core/Mage/Checkout/controllers/CartController.php
    app/code/core/Mage/Core/Model/Email/Template/Abstract.php
    app/code/core/Mage/Core/Model/File/Validator/Image.php
    app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
    app/code/core/Mage/Core/etc/config.xml
    app/code/core/Mage/Rss/Helper/Data.php
    app/code/core/Mage/Sales/Model/Resource/Order/Item/Collection.php
    app/code/core/Zend/Serializer/Adapter/PhpCode.php
    app/design/adminhtml/default/default/template/backup/dialogs.phtml
    app/design/adminhtml/default/default/template/catalog/product/edit/options/type/file.phtml
    app/design/adminhtml/default/default/template/customer/tab/view.phtml
    app/design/adminhtml/default/default/template/login.phtml
    app/design/adminhtml/default/default/template/notification/toolbar.phtml
    app/design/adminhtml/default/default/template/oauth/authorize/form/login-simple.phtml
    app/design/adminhtml/default/default/template/oauth/authorize/form/login.phtml
    app/design/adminhtml/default/default/template/resetforgottenpassword.phtml
    app/design/adminhtml/default/default/template/sales/order/view/history.phtml
    app/design/adminhtml/default/default/template/sales/order/view/info.phtml
    app/design/install/default/default/template/install/create_admin.phtml
    app/locale/en_US/Mage_Adminhtml.csv
    downloader/template/login.phtml
    
    
    To install the patch via FTP/File Upload
    • select patch bundle archive corresponding to your Magento version from the table below and unpack it
    • upload all files and folders to Magento root directory of your store, replacing all files
    Magento versionSUPEE-10266 v1
    Magento 1.9.3.4SUPEE-10266-1.9.3.4
    Magento 1.9.3.3SUPEE-10266-1.9.3.3
    Magento 1.9.3.2SUPEE-10266-1.9.3.2
    Magento 1.9.3.1SUPEE-10266-1.9.3.1
    Magento 1.9.3.0SUPEE-10266-1.9.3.0
    Magento 1.9.2.4SUPEE-10266-1.9.2.4
    Magento 1.9.2.3SUPEE-10266-1.9.2.3
    Magento 1.9.2.2SUPEE-10266-1.9.2.2
    Magento 1.9.2.1SUPEE-10266-1.9.2.1
    Magento 1.9.2.0SUPEE-10266-1.9.2.0
    Magento 1.9.1.1use SUPEE-10497
    Magento 1.9.1.0SUPEE-10266-1.9.1.0
    Magento 1.8.1.0SUPEE-10266-1.8.1.0
    Magento 1.7.0.2SUPEE-10266-1.7.0.2
    Downloads for other versions added to table on demand when we patch certain version via file upload for the first time.

    Verification and flush of PHP opcode cache

    Test that your store is working. If you use PHP opcode caches (APC/XCache/eAccelerator) make sure to flush it after patching (or restart webserver), otherwise code will continue to run from caches. If you have any difficulties with applying the patches please let us know in comments, so we can find the solution together.

    Comments

    Archived discussion

    1. Scode
      Thank you for the 1.7.0.2 files :)
    2. muhammad Naseem
      could you tell me how to get magento 1.9.1.1 patches because i need to upload
    3. muhammad Naseem
      can i use magento 1.9.3.2 patches to magento 1.9.1.1 ?
    4. Lorenzo Giuntini
      Good morning, is patch for magento CE 1.9.0.1 available? Thanks
    5. Pajk8
      could you add magento 1.5.1 files? Thank you
    6. gequaldev
      Why we can not download any patch zip file? Please make it accessible.
    7. Golam Faroque
      none of the patch package can be accessible - please reply.
    8. Virang
      Applied this patch successfully but but in Mage_Core_Model_File_Validator_Image file, Image size is getting bigger than actual size after upload. Can anyone please suggest the solution?
      1. Marc
        We had this issue before the patch, too. This is an Magento problem. We have deactivate the manipulation of the images by magento …
    9. Viktor D.

      Hi,I am getting an error in backend> Customer> Save new password app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php on line 101

      Magento ver. is 1.7.0.2

    10. Alejandro Araujo
      Files for v1.5.1.0? PLEASEEEE
    11. Alex Shenson
      Thanks a lot, for fixing the 1.9.1.1 link!