All vulnerabilities

Servers and applications

CVE-2026-55072

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

Severity
High 8.5
Published
10 Jun 2026
Last changed
16 Jun 2026
Added to UpHeron
3 Nov 2026
Fixed in
2026.1.5
Exploit chance
0.4% in the next 30 daysHigher than 35% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper input validation (CWE-20)SQL injection (CWE-89)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Also known as
GHSA-2mhj-fhvg-v428
Sources
Project advisories (GitHub)

Description

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 $.

models/DataObject/ClassDefinition.php lines 1148-1154:

Both patterns are missing a trailing $ anchor. Without it, preg_match only checks that the string STARTS with a valid identifier — it does not assert end-of-string. A UID of 1 UNION SELECT password FROM users-- passes because the regex matches 1 at the start and ignores the rest.

Compare with the correct pattern used by Fieldcollection in models/DataObject/Fieldcollection/Definition.php line 268:

models/DataObject/ClassDefinition/Data/Block.php line 735:

From pimcore/pimcore's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
PimcoreServers and applications · github:pimcore/pimcore
  • Every version before 2026.1.5

About Pimcore

free open source CMS

From Wikidata, CC0 1.0.
Companies using it
118,000+Pimcore
Monthly downloads (Packagist)
80,710Packagist, 15 Nov 2026
Total downloads (Packagist)
4,188,980Packagist, 15 Nov 2026
Docker Hub pulls
6,784,817Docker Hub, 15 Nov 2026
GitHub stars
3,894GitHub, 15 Nov 2026
Forks
1,514GitHub, 15 Nov 2026
Latest release
v2026.3.5GitHub, 15 Nov 2026
Released
11 Nov 2026GitHub
Developer
Pimcore GmbHWikidata
Written in
PHPWikidata
First released
2013Wikidata
First published on GitHub
1 Nov 2011GitHub

References