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
- 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:
Affected software
| Software | Affected versions |
|---|---|
PimcoreServers and applications · github:pimcore/pimcore |
|
About Pimcore
free open source CMS
- 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
Website Source code Docker image Package
Vulnerabilities in Pimcore
- In our list
- 148
- Published in the last 12 months
- 24
- Critical, last 12 months
- 1
- High, last 12 months
- 14
- Known exploited
- 0
- CVE-2026-1197912FA Reset IDOR allows non-admin users to disable any user's two-factor authenticationMedium 5.3 18 Nov 2026
- CVE-2026-119792Missing session binding on CSV export temp files allows any `reports` user to steal and destroy other users' exportsMedium 5.9 18 Nov 2026
- CVE-2026-115894Incomplete fix of Twig sandbox hardening (#19193 / GHSA-5qxq sibling): model getters reachable -> admin password-hash & recovery-token exfiltration and arbitrary asset readHigh 7.7 26 Oct 2026
- CVE-2026-115891SQL Injection via Unwhitelisted Filter Property in NotificationServiceFilterParser Allows Data ExfiltrationHigh 8.8 26 Oct 2026
- CVE-2026-115890SQL Injection via Unescaped FieldCollection fieldname in DataObject Listing JOIN ConditionHigh 8.8 26 Oct 2026
- CVE-2026-58401(Incomplete Patch) Unsafe PHP deserialization in lib/Tool/Authentication.php remains unpatched after CVE-2026-45162 fixHigh 8.0 20 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-55072
- GitHub Advisory Database https://github.com/advisories/GHSA-2mhj-fhvg-v428
- github.com https://github.com/pimcore/pimcore/security/advisories/GHSA-2mhj-fhvg-v428