Skip to content
Laskyr

shopware/core security advisory

CVE-2026-23498: Shopware Has Improper Control of Generation of Code in Twig rendered views

CVE-2026-23498 is a high-severity remote code execution vulnerability in the PHP package shopware/core (CVSS 7.2), published 14 January 2026. It is fixed in 6.7.6.1; earlier versions are affected. Exploiting it needs an admin-level account.

high 7.2 published 2026-01-14 · updated 2026-06-17

Fixed in shopware/core 6.7.6.1

This remote code execution issue affects shopware/core versions >= 6.7.0.0, < 6.7.6.1. Upgrade to the fixed version for your release line (6.7.6.1). The newest release, 6.7.16.0, is not affected.

Affected versions
>= 6.7.0.0, < 6.7.6.1
Fixed in
6.7.6.1
Newest release
6.7.16.0
Severity
High · CVSS 7.2
Type
Remote code execution
CWE-94
Exploited in the wild
Not on the CISA KEV list
checked 2026-11-04

Is your shopware/core version affected?

Run composer show shopware/core in your project, then enter the version. We check it against this and every other known shopware/core advisory.

Who can exploit CVE-2026-23498

CVSS vector (scored by NVD): CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Your app is only exposed if it uses the affected part of shopware/core. The advisory below says which part that is. If you are not sure, upgrade anyway: it costs less than finding out.

How to fix CVE-2026-23498 in shopware/core

  1. Find the installed version: composer show shopware/core. If you never required it yourself, composer why shopware/core shows which package pulls it in.
  2. Update it: composer update shopware/core --with-all-dependencies. You need 6.7.6.1 or newer.
  3. If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example "shopware/core": "^6.7.6.1" if you can take that version), or upgrade the package that requires it.
  4. Run composer audit. It reads the same advisory data and should no longer list CVE-2026-23498.
  5. Commit composer.lock and deploy it. On the server, run composer install --no-dev from the lock file, not composer update.

If you cannot upgrade yet

General hardening for remote code execution issues while the upgrade waits. None of it replaces the fix.

The CVE-2026-23498 advisory

Shopware is an open commerce platform. From 6.7.0.0 to before 6.7.6.1, a regression of CVE-2023-2017 leads to an array and array crafted PHP Closure not checked being against allow list for the map(...) override. This vulnerability is fixed in 6.7.6.1.

Description from the CVE record, published by GitHub (the CVE Numbering Authority), via the NVD entry for CVE-2026-23498. Advisory title: “Shopware Has Improper Control of Generation of Code in Twig rendered views”.

References

Other shopware/core advisories

Related

Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.

Ask about a fix

Where this data comes from

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit