CVE-2022-39365: RCE vulnerability in Pimcore/Mail & Dynamic Text Layout

pimcore/pimcore Updated 02 Oct 2025

Summary

29/10/2022
Yes i
Critical
9.8

CVE-2022-39365: RCE vulnerability in Pimcore/Mail & Dynamic Text Layout. Affects pimcore/pimcore versions < 10.5.9. Fixed in 10.5.9. 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

Pimcore is an open-source platform for managing digital experiences. It provides a wide range of features for building and managing websites, digital assets, and customer experiences. The Pimcore/Mail component is responsible for handling email templates, while the ClassDefinition/Layout/Text component manages dynamic text layout. These components are vulnerable to a server-side template injection remote code execution (RCE) attack.

Vulnerability Detail

The user-controlled twig templates rendering in Pimcore/Mail & ClassDefinition/Layout/Text is vulnerable to server-side template injection RCE. This means that an attacker can inject malicious code into the templates, which will be executed on the server when the templates are rendered. This can lead to arbitrary code execution, allowing the attacker to take control of the server and potentially access or modify sensitive data. The vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

Minimum fixed version

10.5.9

This is the first release that contains the fix.

composer require pimcore/pimcore:10.5.9

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If updating or applying the patch is not immediately feasible, you can manually apply the patch provided at https://github.com/pimcore/pimcore/pull/13347.patch. This workaround will mitigate the vulnerability and prevent the server-side template injection RCE.

Conclusion

The RCE vulnerability in Pimcore/Mail & Dynamic Text Layout allows an attacker to execute arbitrary code on the server by injecting malicious code into user-controlled twig templates. It is critical to update to version 10.5.9 or apply the provided patch to mitigate this vulnerability. If immediate updating or patching is not possible, the workaround can be applied. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for pimcore/pimcore →

Share this vulnerability

FAQ

Pimcore is an open-source platform for managing digital experiences. It provides features for building and managing websites, digital assets, and customer experiences.

Server-side template injection is a vulnerability that allows an attacker to inject malicious code into templates that are processed on the server. This can lead to arbitrary code execution.

Remote code execution is a vulnerability that allows an attacker to execute arbitrary code on a target system. In the context of this vulnerability, it means that an attacker can execute code on the server hosting the Pimcore application.

The CVSS score of this vulnerability is 9.8, indicating its critical severity.

You can use Vulert's playground at Vulert Scanner to check if your Pimcore installation is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the composer.lock file.

Related vulnerabilities

Recent vulnerabilities recorded for pimcore/pimcore.

How To Fix

Minimum fixed version

10.5.9

This is the first release that contains the fix.

composer require pimcore/pimcore:10.5.9

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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