Skip to main content

CVE-2024-42355 — Vulnerability in shopware/core — CVE Details

HIGH

Shopware vulnerable to Server Side Template Injection in Twig using deprecation silence tag

Published August 8, 2024Updated August 12, 2024Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.67%). Schedule for your next planned update.

Does your project use an affected shopware/core version?

Paste your composer.lock to check it for CVE-2024-42355 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

Summary

Impact

Shopware has a new Twig Tag sw_silent_feature_call which silences deprecation messages while triggered in this tag. It accepts as parameter a string the feature flag name to silence, but this parameter is not escaped properly and allows execution of code.

Patches

Update to Shopware 6.6.5.1 or 6.5.8.13

Workarounds

For older versions of 6.2, 6.3, and 6.4, corresponding security measures are also available via a plugin. For the full range of functions, we recommend updating to the latest Shopware version.

Advisory Timeline

  • First published August 8, 2024 (840 days ago).
  • Last revised August 12, 2024 — 4 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update shopware/core to 6.6.5.1 or later
composer require "shopware/core:^6.6.5.1"
Composer
Update shopware/platform to 6.5.8.13 or later
composer require "shopware/platform:^6.5.8.13"
Composer
Update shopware/platform to 6.6.5.1 or later
composer require "shopware/platform:^6.6.5.1"
Composer
Update shopware/core to 6.5.8.13 or later
composer require "shopware/core:^6.5.8.13"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: Packagist (2).

PackageFixed In
shopware/core Packagist · Affected: v6.6.0.0, v6.6.0.1, v6.6.0.2, v6.6.0.3 (+9 more)6.6.5.1
shopware/platform Packagist · Affected: 6.3.0.0, 6.3.0.1, 6.3.0.2, 6.3.1.0 (+108 more)6.5.8.13
shopware/platform Packagist · Affected: v6.6.0.0, v6.6.0.1, v6.6.0.2, v6.6.0.3 (+9 more)6.6.5.1
shopware/core Packagist · Affected: 6.3.0.0, 6.3.0.1, 6.3.0.2, 6.3.1.0 (+108 more)6.5.8.13

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Frequently Asked Questions

What is CVE-2024-42355?
Shopware vulnerable to Server Side Template Injection in Twig using deprecation silence tag. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.3/10).
How do I check if my project is affected by CVE-2024-42355?
CVE-2024-42355 affects shopware/core and shopware/platform. It has a 1.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-42355 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.3

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.67%
EPSS percentile: 77.2

This places it in the top quartile of EPSS-scored vulnerabilities — 77.2% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.

Also Known As

GHSA-27wp-jvhw-v4xp

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock