CVE-2026-45162 — Pimcore has Unsafe PHP Deserialization in...
Pimcore has Unsafe PHP Deserialization in Multiple Locations Without allowed_classes Restriction
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.99%). Schedule for your next planned update.
Does your project use an affected pimcore/pimcore version?
Paste your composer.lock to check it for CVE-2026-45162 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
GitHub Security Advisory Draft — GM-374
Summary
Multiple locations in Pimcore v11 call PHP's unserialize() on data from database columns and filesystem files without the allowed_classes restriction, enabling object injection if an attacker can control the serialized data source.
Severity
CVSS 3.1: 8.0 (High) — AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
Affected Component
- Package:
pimcore/pimcoreandpimcore/admin-ui-classic-bundle - Files:
lib/Tool/Authentication.php(line 82) — session token deserializationmodels/Site/Dao.php(line 68) — site domains from databasemodels/DataObject/ClassDefinition/CustomLayout/Dao.php(line 69) — layout definitions from databasemodels/Tool/TmpStore/Dao.php(line 64) — temporary store data from databasemodels/Asset/WebDAV/Service.php(line 36) — delete log from filesystemadmin-ui-classic-bundle/src/Helper/Dashboard.php(line 64) — dashboard config from filesystem
Description
Six locations in Pimcore core call unserialize() directly (bypassing Tool\Serialize) on data sourced from database columns or filesystem files without passing the allowed_classes parameter. This means any class available in the autoloader will be instantiated during deserialization.
If an attacker can write to the data source (e.g., via SQL injection targeting the tmp_store, sites, or custom_layouts tables, or via a file write vulnerability targeting the WebDAV delete log), they can inject serialized PHP gadget chains that execute arbitrary code when the data is deserialized.
This is related to but distinct from the Tool\Serialize::unserialize() issue — these calls bypass the wrapper entirely.
Impact
PHP object injection leading to Remote Code Execution when chained with a data source write vulnerability. Pimcore's dependency tree (Guzzle, Symfony, Monolog, Doctrine) provides numerous known gadget chains.
Proof of Concept
- Identify a writable data source (e.g.,
tmp_storetable via SQL injection, orwebdav-delete.datvia file write) - Write a serialized PHP gadget chain (e.g., Monolog
BufferHandlerchain from phpggc) - Trigger the deserialization (e.g., access a page that reads TmpStore, or trigger a WebDAV operation)
- The gadget chain executes with web server privileges
Suggested Fix
Add allowed_classes parameter to all unserialize() calls. Where no objects are needed, use ['allowed_classes' => false]. Consider migrating to JSON serialization for data that doesn't require object preservation.
// Example fix for Site/Dao.php:
$siteDomains = unserialize($site['domains'], ['allowed_classes' => false]);
// Example fix for TmpStore/Dao.php:
$item['data'] = unserialize($item['data'], ['allowed_classes' => false]);
References
- CWE-502: Deserialization of Untrusted Data
- OWASP Deserialization Cheat Sheet
- phpggc: PHP Generic Gadget Chains
Advisory Timeline
- First published May 27, 2026 (183 days ago).
- Last revised July 10, 2026 — 44 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "pimcore/pimcore:^11.5.17"
composer require "pimcore/pimcore:^2026.1.3"
composer require "pimcore/pimcore:^12.3.7"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| pimcore/pimcore Packagist · Affected: 10.0.8, 2.2.0, 2.2.1, 2.2.2 (+292 more) | 11.5.17 |
| pimcore/pimcore Packagist · Affected: v2026.1.0, v2026.1.1, v2026.1.2 | 2026.1.3 |
| pimcore/pimcore Packagist · Affected: v12.0.0, v12.0.0-RC1, v12.0.0-RC2, v12.0.1 (+22 more) | 12.3.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/pimcore/pimcore/security/advisories/GHSA-36fc-7wjg-mfvjWEB
- https://github.com/pimcore/pimcore/pull/19119WEB
- https://github.com/pimcore/pimcore/commit/4788bf3a3a7f2f760a8fe61e522565941e154e1eWEB
- https://github.com/pimcore/pimcorePACKAGE
- https://github.com/pimcore/pimcore/releases/tag/v12.3.7WEB
Frequently Asked Questions
- What is CVE-2026-45162?
- Pimcore has Unsafe PHP Deserialization in Multiple Locations Without allowed_classes Restriction. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.0/10).
- How do I check if my project is affected by CVE-2026-45162?
- CVE-2026-45162 affects pimcore/pimcore. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-45162 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 61.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2022-39365CRITICAL
RCE vulnerability in Pimcore/Mail & Dynamic Text Layout
- CVE-2026-55634CRITICAL
Pimcore Vulnerable to Remote Code Execution via DataObject Class-Definition Field Name
- CVE-2026-55416HIGH
Pimcore: SQL Injection in Custom Reports via Malicious Report Configuration
- CVE-2026-55072HIGH
Pimcore: ClassDefinition UID regex missing end anchor allows SQL injection via Block.php unquoted table name
- CVE-2026-44739HIGH
Pimcore Vulnerable to SQL Injection in Custom Reports Column Configuration
- CVE-2014-2921HIGH
Pimcore Vulnerable to PHP Object Injection Attacks
- CVE-2026-23493HIGH
Pimcore ENV Variables and Cookie Informations are exposed in http_error_log
- CVE-2025-27617MEDIUM
Pimcore Vulnerable to SQL Injection in getRelationFilterCondition