CVE-2026-23498CWE-94

Shopware Improper Control of Generation of Code in Twig rendered views

High · published January 14, 2026

CVSS v3.1
7.2
EPSS
0%
Percentile
37.4
In the wild
Unconfirmed
What it is

⚡ A sneaky regression in Shopware could let attackers execute unauthorized PHP Closures — like serving up a secret dish without checking the menu! 🔥 Think of it like a restaurant kitchen that accepts any order without verifying what's on the menu. One wrong dish could lead to a culinary disaster, just as this unchecked PHP Closure can wreak havoc in your application. With this vulnerability, an attacker could manipulate the system to execute arbitrary PHP code, potentially compromising the entire application. This could allow them to access sensitive data, alter content, or even take full control of the Shopware instance. The risks are serious, and while it's not widely exploited yet, the potential consequences are absolutely devastating!

Put simply

Think of it like a restaurant kitchen that accepts any order without verifying what's on the menu. One wrong dish could lead to a culinary disaster, just as this unchecked PHP Closure can wreak havoc in your application. This vulnerability arises from a regression in the handling of PHP Closures in Shopware versions 6.7.0.0 up to 6.7.6.0, where crafted arrays are not properly checked against an allow list during the map(...) override, leading to possible code execution.

What to do

With this vulnerability, an attacker could manipulate the system to execute arbitrary PHP code, potentially compromising the entire application. This could allow them to access sensitive data, alter content, or even take full control of the Shopware instance. The risks are serious, and while it's not widely exploited yet, the potential consequences are absolutely devastating! To secure your Shopware environment, immediately upgrade to version 6.7.6.1, where this issue is addressed. Additionally, review your codebase for any similar patterns that might bypass security checks. Regularly audit your extensions and plugins to ensure they are compatible with the latest security patches. You've got this! Follow these steps to secure your Shopware instance and keep those unauthorized orders at bay! 🛡️

The record
Technical detail
CVSS v3.1
7.2 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00442 · 37.4th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-01-14T18:31Z
EPSS history
Timeline
  • 14 JAN 18:31Z
    Shopware Improper Control of Generation of Code in Twig rendered views
    cvelistv5