Most Magento stores are hacked through holes that were already fixed in a patch the store never applied. Attackers read Adobe’s security bulletins too, and they start scanning for unpatched stores within days of a release.

Check your version

bin/magento --version
composer show magento/product-community-edition 2>/dev/null | grep versions

For Adobe Commerce, check magento/product-enterprise-edition instead. A version like 2.4.7-p6 means 2.4.7 with the sixth security patch release.

Compare it with the current release

Adobe publishes security bulletins for Magento (Adobe Commerce and Magento Open Source) on its security bulletin page. Find the latest patch release for your 2.4.x line. If you are several patch releases behind, you are exposed to everything fixed since then.

Also check that your release line is still supported. Old lines stop receiving patches at all, and then the only fix is an upgrade.

Check individual patches

Adobe’s Quality Patches Tool lists the individual fixes available for your exact version and shows which ones are applied:

composer require magento/quality-patches
vendor/bin/magento-patches status

Urgent security fixes are sometimes released as isolated patches before the next full patch release.

Update safely

  1. Update on a staging copy of the store first, never directly on live.
  2. Update the version constraint in composer.json, then run composer update.
  3. Run bin/magento setup:upgrade, setup:di:compile and setup:static-content:deploy.
  4. Test checkout, payment methods and your main extensions.
  5. Repeat on live in a quiet period, with a backup ready.

Make it routine

With monthly patch releases, plan a small update every month rather than a large, risky one twice a year. Keep PHP, MySQL, OpenSearch and Redis versions supported too. They have their own security fixes.

Catch it automatically

MageMonitor checks for this every few minutes as part of its Security Center checks for patch status, and alerts you by email, Slack or webhook the moment it appears, with the exact commands to fix it. See MageMonitor for Magento 2.

Related fixes