# Pimcore: ClassDefinition UID regex missing end anchor allows SQL injection via Block.php unquoted table name

High severity, published 2026-08-13. Update pimcore/pimcore to the fixed version of your branch (2026.1.5, 12.3.9): composer update pimcore/pimcore.

Canonical URL: https://buzzphp.com/security/ghsa-2mhj-fhvg-v428 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.5) |
| Published | 2026-08-13 |
| Updated | 2026-08-13 |
| CVE | [CVE-2026-55072](https://nvd.nist.gov/vuln/detail/CVE-2026-55072) |
| GHSA | [GHSA-2mhj-fhvg-v428](https://github.com/advisories/GHSA-2mhj-fhvg-v428) |
| Weakness | CWE-20, CWE-89 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| pimcore/pimcore | >= 2026.1.0, <= 2026.1.4 or < 12.3.9 | 2026.1.5, 12.3.9 |

## What to do

Update pimcore/pimcore to the fixed version of your branch (2026.1.5, 12.3.9): composer update pimcore/pimcore.

Check which version you run with `composer show pimcore/pimcore`, and every affected package with `composer audit`.

## About this advisory

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.

## Links

- [GHSA-2mhj-fhvg-v428 on GitHub](https://github.com/advisories/GHSA-2mhj-fhvg-v428)
- [CVE-2026-55072 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-55072)
- [All Composer security advisories](https://buzzphp.com/security)
