In the Magento codebase, the Adobe team regularly releases security patches for the ongoing Magento version.
You can upgrade the Latest Security patches released on 9th October 2024 from Adobe.
-
-
- 2.4.7-p3
- 2.4.6-p8
- 2.4.5-p10
- 2.4.4-p11
-
Check the end of the articles to see how to upgrade Magento security patches for the latest release.
To upgrade the latest Magento security patch, you must make a few changes to the composer.json file in your system code root directory to secure your store.
It would be better to upgrade the security patch version when Adobe announces the release of new security patches.
Magento Open Source:
composer require magento/product-community-edition <MAGENTO_PATCH_VERSION> --no-update composer update magento/product-community-edition --with-all-dependencies
Adobe Commerce On-Premise:
composer require magento/product-enterprise-edition <MAGENTO_PATCH_VERSION> --no-update composer update magento/product-enterprise-edition:<MAGENTO_PATCH_VERSION> --with-all-dependencies
Adobe Cloud:
You need to update magento-cloud-metapackage
with current_version and next_version syntax.
For current_version, you have to define the Adobe Commerce version to install.
For next_version, you have to define the next patch version after the value specified in current_version.
If you want to install Adobe Commerce 2.4.7-p2, set current_version to 2.4.7 and the next_version to 2.4.8. The constraint looks like “>=2.4.7 <2.4.8” installs the latest available package for 2.4.7.
composer require magento/magento-cloud-metapackage ">=2.4.7 <2.4.8" --no-update composer update magento/magento-cloud-metapackage --with-all-dependencies
The Magento Cloud meta package is still not updating using the above way, You can use the flag -W to upgrade the latest security patch.
composer update magento/magento-cloud-metapackage -W
Updated on 9 October 2024
Upgrade Magento Open Source security patch version 2.4.7-p3
composer require magento/product-community-edition 2.4.7-p3 --no-update composer update magento/product-community-edition --with-all-dependencies
Upgrade Magento Open Source security patch version 2.4.6-p8
composer require magento/product-community-edition 2.4.6-p8 --no-update composer update magento/product-community-edition --with-all-dependencies
Upgrade Magento Adobe Commerce security patch version 2.4.7-p3
composer require magento/product-enterprise-edition 2.4.7-p3 --no-update composer update magento/product-enterprise-edition --with-all-dependencies
Upgrade Magento Adobe Commerce security patch version 2.4.6-p8
composer require magento/product-enterprise-edition 2.4.6-p8 --no-update composer update magento/product-enterprise-edition --with-all-dependencies
Upgrade Adobe Cloud Security Patch Version 2.4.7-p3
composer require magento/magento-cloud-metapackage ">=2.4.7 <2.4.8" --no-update composer update magento/magento-cloud-metapackage --with-all-dependencies
Upgrade Adobe Cloud Security Patch Version 2.4.6-p8
composer require magento/magento-cloud-metapackage ">=2.4.6 <2.4.7" --no-update composer update magento/magento-cloud-metapackage --with-all-dependencies
Updated on 14 August 2024
Upgrade Magento Open Source Magento 2.4.7-p2
composer require magento/product-community-edition 2.4.7-p2 --no-update composer update magento/product-community-edition --with-all-dependencies
Upgrade Magento Open Source Magento 2.4.6-p7
composer require magento/product-community-edition 2.4.6-p7 --no-update composer update magento/product-community-edition --with-all-dependencies
Upgrade Magento Adobe Commerce 2.4.7-p2
composer require magento/product-enterprise-edition 2.4.7-p2 --no-update composer update magento/product-enterprise-edition --with-all-dependencies
Upgrade Magento Adobe Commerce 2.4.6-p7
composer require magento/product-enterprise-edition 2.4.6-p7 --no-update composer update magento/product-enterprise-edition --with-all-dependencies
Upgrade Adobe Cloud Security Patch 2.4.7-p2
composer require magento/magento-cloud-metapackage ">=2.4.7 <2.4.8" --no-update composer update magento/magento-cloud-metapackage --with-all-dependencies
Upgrade Adobe Cloud Security Patch 2.4.6-p7
composer require magento/magento-cloud-metapackage ">=2.4.6 <2.4.7" --no-update composer update magento/magento-cloud-metapackage --with-all-dependencies
You can upgrade any latest security patch using the above way by providing the correct security patch version.
This is the simple way to secure your Magento with a security patch upgrade.