CVE-2024-42355: Server Side Template Injection in Shopware using deprecation silence tag

shopware/core Updated 02 Oct 2025

Summary

08/08/2024
Yes i
High
8.3

CVE-2024-42355: Shopware vulnerable to Server Side Template Injection in Twig using deprecation silence tag. Affects shopware/core across 2 version ranges.

< 6.5.8.13 >= 6.6.0.0, < 6.6.5.1

Fixed in 6.5.8.13 or 6.6.5.1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Shopware is an open-source e-commerce platform that provides a range of features for online stores. It utilizes the Twig template engine for rendering templates. Twig is a flexible and secure template engine for PHP. However, a vulnerability has been discovered in Shopware that allows for Server Side Template Injection (SSTI) when using the deprecation silence tag in Twig templates.

Vulnerability Detail

The vulnerability in Shopware arises from a new Twig tag called sw_silent_feature_call, which is used to silence deprecation messages. This tag accepts a string parameter that represents the feature flag name to silence. However, the parameter is not properly escaped, allowing for code execution. An attacker can exploit this vulnerability by injecting malicious code into the parameter, leading to potential remote code execution and other security risks.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 6.5.8.13 6.5.8.13
    composer require shopware/core:6.5.8.13
  • >= 6.6.0.0, < 6.6.5.1 6.6.5.1
    composer require shopware/core:6.6.5.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

For older versions of Shopware (6.2, 6.3, and 6.4), a plugin is available that provides corresponding security measures. However, it is recommended to update to the latest version of Shopware to access the full range of functions and ensure comprehensive security.

Conclusion

Shopware is vulnerable to Server Side Template Injection when using the deprecation silence tag in Twig templates. This vulnerability can be mitigated by updating to the recommended versions or using the available plugin for older versions. It is crucial to keep the system up to date to ensure comprehensive security.

See every vulnerability recorded for shopware/core →

Share this vulnerability

FAQ

Shopware is an open-source e-commerce platform that offers a wide range of features for online stores.

Twig is a flexible and secure template engine for PHP, used by Shopware for rendering templates.

Server Side Template Injection is a vulnerability that allows an attacker to inject and execute malicious code within server-side templates.

The vulnerability in Shopware allows for potential remote code execution and other security risks, depending on the injected code.

To fix this vulnerability, update Shopware to version 6.6.5.1 or 6.5.8.13, which include patches for the SSTI vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for shopware/core.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 6.5.8.13 6.5.8.13
    composer require shopware/core:6.5.8.13
  • >= 6.6.0.0, < 6.6.5.1 6.6.5.1
    composer require shopware/core:6.6.5.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback