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

Source: https://junglewise.ai/threats/cve-2026-5394-pimcore-platform-sql-injection-in-dataobject-composite-index  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-28. Updated: 2026-05-28  
License: CC BY 4.0 with a link back

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)](https://junglewise.ai/threats/technologies/pimcore-pimcore), [Pimcore](https://junglewise.ai/threats/technologies/pimcore). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist), [Pimcore](https://junglewise.ai/threats/vendors/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

  ```sh
  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

- [https://api.github.com/users/researchatfluidattacks](https://api.github.com/users/researchatfluidattacks)
- [https://github.com/researchatfluidattacks](https://github.com/researchatfluidattacks)
- [https://api.github.com/users/researchatfluidattacks/gists%7B/gist_id%7D](https://api.github.com/users/researchatfluidattacks/gists%7B/gist_id%7D)
- [https://api.github.com/users/researchatfluidattacks/repos](https://api.github.com/users/researchatfluidattacks/repos)
- [https://avatars.githubusercontent.com/u/252032344?v=4](https://avatars.githubusercontent.com/u/252032344?v=4)
- [https://api.github.com/users/researchatfluidattacks/events%7B/privacy%7D](https://api.github.com/users/researchatfluidattacks/events%7B/privacy%7D)

## Related threats

- [Pimcore stored cross-site scripting in data objects](https://junglewise.ai/threats/cve-2026-109392-pimcore-through-2026-3-1-contains-a-stored-cross-site-scripting)
- [Pimcore SQL injection in Custom Reports via configuration](https://junglewise.ai/threats/cve-2026-55416-pimcore-sql-injection-in-custom-reports-via-configuration)
- [Pimcore ClassDefinition UID regex SQL injection in Block.php](https://junglewise.ai/threats/cve-2026-55072-pimcore-classdefinition-uid-regex-sql-injection-in-block-php)
- [Pimcore DataObject class-definition field name remote code execution](https://junglewise.ai/threats/cve-2026-55634-pimcore-dataobject-class-definition-field-name-remote-code)
- [Pimcore Hotspotimage unrestricted PHP object deserialization](https://junglewise.ai/threats/cve-2026-55220-pimcore-hotspotimage-unrestricted-php-object-deserialization)
