Skip to main content

CVE-2026-45162 — Pimcore has Unsafe PHP Deserialization in...

HIGH

Pimcore has Unsafe PHP Deserialization in Multiple Locations Without allowed_classes Restriction

Published May 27, 2026Updated July 10, 2026Source: OSV

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.

Check my composer.lock

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/pimcore and pimcore/admin-ui-classic-bundle
  • Files:
    • lib/Tool/Authentication.php (line 82) — session token deserialization
    • models/Site/Dao.php (line 68) — site domains from database
    • models/DataObject/ClassDefinition/CustomLayout/Dao.php (line 69) — layout definitions from database
    • models/Tool/TmpStore/Dao.php (line 64) — temporary store data from database
    • models/Asset/WebDAV/Service.php (line 36) — delete log from filesystem
    • admin-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

  1. Identify a writable data source (e.g., tmp_store table via SQL injection, or webdav-delete.dat via file write)
  2. Write a serialized PHP gadget chain (e.g., Monolog BufferHandler chain from phpggc)
  3. Trigger the deserialization (e.g., access a page that reads TmpStore, or trigger a WebDAV operation)
  4. 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
Update pimcore/pimcore to 11.5.17 or later
composer require "pimcore/pimcore:^11.5.17"
Composer
Update pimcore/pimcore to 2026.1.3 or later
composer require "pimcore/pimcore:^2026.1.3"
Composer
Update pimcore/pimcore to 12.3.7 or later
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).

PackageFixed 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.22026.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-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H

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

CVSS Score
8.0

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.99%
EPSS percentile: 61.2

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

GHSA-36fc-7wjg-mfvj

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock