CVE-2026-55072: Pimcore SQL Injection via ClassDefinition UID Regex Flaw

pimcore/pimcore Updated 13 Aug 2026

Summary

13/08/2026
Yes i
High
8.5

CVE-2026-55072: A missing end anchor ($) in the ClassDefinition UID validation regex allows an authenticated user with the objects permission to create a class with a malicious UID containing SQL. Affects pimcore/pimcore across 2 version ranges.

< 12.3.9 >= 2026.1.0, < 2026.1.5

Fixed in 12.3.9 or 2026.1.5, 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

Pimcore is an open-source digital experience platform that enables users to manage and deliver content across various channels. It provides functionalities for content management, e-commerce, and digital asset management. The platform allows users to define classes for data objects, which can be manipulated through a user-friendly interface. However, a vulnerability exists in the ClassDefinition UID validation, which can lead to SQL injection attacks, compromising the integrity and confidentiality of the database.

Vulnerability Detail

The vulnerability arises from a missing end anchor in the regex used for validating ClassDefinition UIDs in Pimcore. This flaw allows an authenticated user with the 'objects' permission to create a class with a malicious UID containing SQL code. When a data object of this class is loaded, the Block.php file concatenates the raw classId directly into a SQL query without proper quoting, leading to the execution of the injected SQL payload. This vulnerability can result in unauthorized access to sensitive data, including user passwords, through SQL injection attacks.

How To Fix

Fixed versions by release line

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

  • < 12.3.9 12.3.9
    composer require pimcore/pimcore:12.3.9
  • >= 2026.1.0, < 2026.1.5 2026.1.5
    composer require pimcore/pimcore:2026.1.5

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

Workaround

As a temporary workaround, you can manually modify the regex patterns in the ClassDefinition.php file to include a trailing '$' anchor. Update the following lines:

if (!preg_match('/^[a-zA-Z]\w+$/', $this->getName())) {
if (!preg_match('/^[a-zA-Z0-9]([a-zA-Z0-9_]+)?$/', $this->getId())) {

Also, wrap the $object->getClassId() in $db->quoteIdentifier() in Block.php to ensure proper quoting.

Conclusion

CVE-2026-55072 represents a significant security risk for Pimcore users, allowing SQL injection through flawed UID validation. It is crucial to update to the patched version or implement workarounds to mitigate this vulnerability and protect sensitive data.

See every vulnerability recorded for pimcore/pimcore →

Share this vulnerability

FAQ

CVE-2026-55072 is a vulnerability in Pimcore that allows SQL injection through improperly validated ClassDefinition UIDs.

Any authenticated user with 'objects' permission in Pimcore can exploit this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score of this vulnerability is 8.5, indicating a high severity level.

If you cannot update, implement the recommended workaround by modifying the regex patterns and ensuring proper quoting in SQL queries.

Related vulnerabilities

Recent vulnerabilities recorded for pimcore/pimcore.

How To Fix

Fixed versions by release line

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

  • < 12.3.9 12.3.9
    composer require pimcore/pimcore:12.3.9
  • >= 2026.1.0, < 2026.1.5 2026.1.5
    composer require pimcore/pimcore:2026.1.5

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