CVE-2026-5394: Pimcore Platform SQL injection in DataObject composite index handling

CVE-2026-5394 · Severity: high · CVSS 4 · Published 2026-05-28

Pimcore, an open-source data management platform, is vulnerable to a security flaw that allows administrative users to execute unauthorized database commands. By uploading a specially crafted configuration file during the data object import process, an attacker can modify the underlying database structure, delete data, or cause a system outage. This could lead to significant data loss or a complete disruption of the platform's operations.

Technologies: pimcore/pimcore (Packagist), Pimcore. Vendors: Packagist, Pimcore.

Quick answers

Is CVE-2026-5394 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-5394 being exploited in the wild.
How severe is CVE-2026-5394?
High severity, with a CVSS score of 4, published 28 May 2026.
Which products and versions are affected?
pimcore/pimcore (Packagist) <= 12.3.6, ECOSYSTEM:introduced=12.0.0-RC1,fixed=12.3.7; Pimcore <= 12.3.6.
Is there a fix for CVE-2026-5394?
Yes. pimcore/pimcore (Packagist): upgrade to 12.3.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-5394 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-5394?
Check whether you run pimcore/pimcore (Packagist) or Pimcore at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • pimcore/pimcore (Packagist): upgrade to 12.3.7 or later
    composer require pimcore/pimcore:^12.3.7

Technical details

A SQL injection vulnerability exists in Pimcore's DataObject composite index handling. The root cause is the lack of sanitization and identifier quoting in `Pimcore\Model\DataObject\Traits\CompositeIndexTrait::updateCompositeIndices()`. Specifically, the `index_columns` and `index_key` values from imported JSON are concatenated directly into `ALTER TABLE` statements. An authenticated attacker with administrative privileges can use a malicious JSON payload to inject additional DDL clauses (e.g., `DROP COLUMN`) into the `ADD INDEX` command. This vulnerability does not require stacked queries as the injection occurs within a single `ALTER TABLE` statement. The issue is fixed in version 12.3.7.

Affected products

  • Pimcore Pimcore Platform <= 12.3.6

Identifiers

  • CVE-2026-5394
  • GHSA-r2f4-ff2p-xc64

Timeline

  • 2026-05-26: advisory: GitHub Advisory published
  • 2026-05-28: disclosed: Public disclosure date
  • 12.3.7: patched: Vulnerability addressed in version 12.3.7

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.