Pimcore: ClassDefinition UID regex missing end anchor allows SQL injection via Block.php unquoted table name
High severity. Published 13 August 2026. Update pimcore/pimcore to the fixed version of your branch (2026.1.5, 12.3.9): composer update pimcore/pimcore.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| pimcore/pimcore (opens in a new tab) | >= 2026.1.0, <= 2026.1.4 | < 12.3.9 | 2026.1.5, 12.3.9 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show pimcore/pimcore
composer auditAdvisory details
| Severity | HighCVSS 8.5 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-55072 (opens in a new tab) |
| GHSA | GHSA-2mhj-fhvg-v428 (opens in a new tab) |
| Weakness | CWE-20, CWE-89 |
What the advisory says
Summary 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. When a data object of that class is later loaded, Block.php concatenates the raw classId directly into a SQL query without quoting, executing the injected payload. This is an incomplete fix from commit dbe1d131e4 which added a leading ^ anchor but omitted the trailing $.
Details 1. Missing end anchor in ClassDefinition UID validation
models/DataObject/ClassDefinition.php lines 1148-1154:
Both patterns are missing a trailing $ anchor.
Source: GHSA-2mhj-fhvg-v428 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- Pimcore: SQL Injection in Custom Reports via Malicious Report Configuration (high, 10 September 2026)
- Pimcore Hotspotimage getDataFromResource() unrestricted Serialize::unserialize over object-store column (PHP Object Injection, CWE-502) (critical, 28 August 2026)
- Pimcore Vulnerable to Remote Code Execution via DataObject Class-Definition Field Name (critical, 28 August 2026)