# CVE-2024-42356: Shopware vulnerable to Server Side Template Injection in Twig using Context functions

Source: https://junglewise.ai/threats/cve-2024-42356-shopware-vulnerable-to-server-side-template-injection-in-twig  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-08-08  
License: CC BY 4.0 with a link back

CVE-2024-42356 · Severity: low · CVSS 3.1 · Published 2024-08-08

Shopware vulnerable to Server Side Template Injection in Twig using Context functions

Technologies: [shopware/core (Packagist)](https://junglewise.ai/threats/technologies/shopware-core), [shopware/platform (Packagist)](https://junglewise.ai/threats/technologies/shopware-platform). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2024-42356 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-42356 being exploited in the wild.

**How severe is CVE-2024-42356?** Low severity, with a CVSS score of 3.1, published 8 August 2024.

**Which products and versions are affected?** shopware/core (Packagist) ECOSYSTEM:introduced=0,fixed=6.5.8.13; shopware/platform (Packagist) ECOSYSTEM:introduced=0,fixed=6.5.8.13.

**Is there a fix for CVE-2024-42356?** Yes. shopware/core (Packagist): upgrade to 6.5.8.13 or later; shopware/platform (Packagist): upgrade to 6.5.8.13 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-42356?** Check whether you run shopware/core (Packagist) or shopware/platform (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- shopware/core (Packagist): upgrade to 6.5.8.13 or later

  ```sh
  composer require shopware/core:^6.5.8.13
  ```

- shopware/platform (Packagist): upgrade to 6.5.8.13 or later

  ```sh
  composer require shopware/platform:^6.5.8.13
  ```


## Affected products

- shopware/core (Packagist) ECOSYSTEM:introduced=0,fixed=6.5.8.13
- shopware/platform (Packagist) ECOSYSTEM:introduced=0,fixed=6.5.8.13

## Identifiers

- CVE-2024-42356
- GHSA-35jp-8cgg-p4wj

## Related threats

- [Shopware SSRF in Media External-Link endpoint](https://junglewise.ai/threats/cve-2026-48013-shopware-ssrf-in-media-external-link-endpoint)
- [Shopware open redirect in SSO entry point via Referer header](https://junglewise.ai/threats/cve-2026-48012-shopware-open-redirect-in-sso-entry-point-via-referer-header)
- [Shopware authorization bypass in handle-payment API](https://junglewise.ai/threats/cve-2026-48016-shopware-authorization-bypass-in-handle-payment-api)
- [Shopware stored XSS via unsanitized SVG file upload](https://junglewise.ai/threats/cve-2026-48015-shopware-stored-xss-via-unsanitized-svg-file-upload)
- [Shopware Admin API authorization bypass in order state transitions](https://junglewise.ai/threats/cve-2026-48014-shopware-admin-api-authorization-bypass-in-order-state)
