Skip to main content

Pimcore EUVDEUVD-2026-77636

| CVE-2026-55416 HIGH
SQL Injection (CWE-89)
2026-09-10 https://github.com/pimcore/pimcore GHSA-23rh-xw42-fq82
8.8
CVSS 3.1 · Vendor: https://github.com/pimcore/pimcore
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to Pimcore admin panel
  2. Delivery
    Obtain or compromise reports_config permission
  3. Exploit
    POST crafted report config with injected SQL payload
  4. Install
    Configuration stored in custom_reports table
  5. C2
    Report render triggers buildQueryString concatenation
  6. Execute
    Regex blacklist bypassed via UNION SELECT
  7. Impact
    Arbitrary database contents exfiltrated

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a valid Pimcore admin session with the reports_config permission explicitly granted to the account. This permission governs who can create and modify custom report configurations; it is not assigned to general end users but may be held by non-super-admin roles in organizations that delegate reporting responsibilities to dedicated analysts or managers. The attacker must have network access to the Pimcore admin interface (the /admin/ path). No non-default configuration, special plugin, or external dependency is required - the vulnerable code path is exercised whenever a custom SQL report configuration is saved and subsequently rendered, which is standard usage of the Custom Reports feature. What limits exploitation is exclusively the authenticated access requirement: unauthenticated users and authenticated users without reports_config cannot reach the vulnerable endpoint at /admin/bundle/customreports/custom-report/update.

Impact

The vendor-assigned CVSS 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects network-accessible exploitation requiring only the reports_config permission. In practice this is an admin-level grant in most Pimcore deployments, making PR:H (yielding a 7.2 base score) arguably more accurate - the real exposure depends entirely on how broadly this permission is distributed within the target organization. EPSS score is absent from the input data, so exploitation probability cannot be quantified. No CISA KEV listing has been provided, meaning active widespread exploitation is not confirmed. The GitHub advisory includes a detailed taint flow, source-code-level attack path, and a working PoC request, which substantially lowers the bar for any attacker who can reach the admin panel with the required permission. Even a mid-sized municipal IT team in ustka running Pimcore for content management should treat this as urgent patching work, since a single compromised reports-manager account leads to full database compromise including credential exfiltration. The primary limiting factor is the authenticated access requirement with a specific permission - unauthenticated exploitation is not possible.

Exploit ScenarioDerived

An attacker who holds or has compromised a Pimcore admin account with reports_config permission submits a crafted POST to /admin/bundle/customreports/custom-report/update with the where configuration field set to 1=1 UNION SELECT username, password, email FROM users, bypassing the regex blacklist because UNION SELECT is not blocked. The injected query is stored in the custom_reports table and executes when the report is rendered, returning all user credentials via the normal report data endpoint. A working proof-of-concept HTTP request demonstrating this technique is publicly documented in GitHub advisory GHSA-23rh-xw42-fq82.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 10, 2026

SQL injection in Pimcore's Custom Reports bundle allows an authenticated attacker holding the reports_config permission to execute arbitrary SQL against the backend database by embedding malicious values in report configuration fields (sql, from, where, groupby). The vulnerable buildQueryString() method in Sql.php concatenates these fields directly into raw SQL protected only by a keyword blacklist that omits INSERT, UNION SELECT, LOAD_FILE(), INTO OUTFILE, comment injection, and subqueries - all viable bypass vectors. Publicly available exploit code exists as a working proof-of-concept HTTP request documented in GitHub advisory GHSA-23rh-xw42-fq82, and exploitation yields full database read, write, and deletion capability.

RemediationAI

Upgrade to Pimcore 11.5.19, 12.3.10, or 2026.1.6, which harden SQL concatenation in the Custom Reports bundle (the 12.3.10 release notes confirm the fix was applied via PR #19175, '[Security]: Improve sql concatenation in Custom Reports'). These are vendor-confirmed patch versions per GHSA-23rh-xw42-fq82. If an immediate upgrade cannot be applied, restrict the reports_config permission to the absolute minimum number of fully trusted administrator accounts and audit all existing grants - this reduces the attack surface but does not eliminate the vulnerability. A WAF rule blocking POST requests to /admin/bundle/customreports/custom-report/update containing SQL keywords such as UNION, SELECT, LOAD_FILE, or INTO OUTFILE in the configuration parameter provides partial mitigation, but WAF rules are bypassable via encoding, comment injection, or keyword splitting and must not substitute for patching. The long-term fix, as recommended in the advisory, is replacing the string concatenation approach with a Doctrine QueryBuilder or parameterized prepared statements and casting $offset/$limit to integers.

Affected VersionsENISA

pimcore 12.0.0, < 12.3.10
pimcore 2026.1.0, < 2026.1.6
pimcore < 11.5.19

Affected Packages

composer pimcore/pimcore fix: 11.5.19, 12.3.10, 2026.1.6
euvd pimcore fix: 11.5.19, 12.3.10, 2026.1.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Pimcore is an open-source PHP content management and digital asset management platform built on the Symfony framework; the affected composer package is pimcore/pimcore. The vulnerability resides in Pimcore\Bundle\CustomReportsBundle\Tool\Adapter\Sql, which powers the Custom Reports feature by building and executing raw SQL queries against the application database. CWE-89 (SQL Injection) is the root cause: buildQueryString() at lines 84-135 concatenates untrusted string values from a persisted report configuration object ($config['sql'], $config['from'], $config['where'], $config['groupby']) directly into a SQL string without prepared statements or parameterized queries. The only guard is a preg_match blacklist targeting DDL/DML keywords (ALTER|CREATE|DROP|RENAME|TRUNCATE|UPDATE|DELETE), which is trivially circumvented using UNION SELECT, INSERT, LOAD_FILE(), INTO OUTFILE, MySQL comment syntax (/*!*/), or subqueries. A secondary injection point exists in getData() where $offset and $limit are interpolated into a LIMIT clause without integer casting (line 51). The configuration is persisted in the custom_reports database table and loaded via Tool\Config::getByName(), creating a stored injection path rather than a purely reflected one.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/pimcore/pimcore) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-reachable admin panel, no complexity beyond holding reports_config permission (PR:L), full database confidentiality, integrity, and availability impact confirmed by taint analysis.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/pimcore/pimcore).

CVSS VectorVendor: https://github.com/pimcore/pimcore

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

DescriptionCVE.org

Security Advisory: SQL Injection in Custom Reports via Malicious Report Configuration

Summary

Impact

A SQL injection vulnerability exists in the Custom Reports bundle (bundles/CustomReportsBundle/src/Tool/Adapter/Sql.php:84-135). An authenticated attacker with reports_config permission can inject arbitrary SQL via the report configuration fields (sql, from, where, groupby), which are directly concatenated into SQL queries without parameterization. The only protection is a regex blacklist that checks for ALTER|CREATE|DROP|RENAME|TRUNCATE|UPDATE|DELETE keywords, which is trivially bypassable - it does not block INSERT, UNION SELECT, LOAD_FILE(), INTO OUTFILE, stacked queries, subqueries, or MySQL comment injection (/*!*/). Exploitation allows reading, modifying, or deleting all data in the database, leading to complete data compromise.

Additionally, the LIMIT clause at line 51 directly interpolates $offset and $limit without integer casting, creating a secondary injection point.

Patches

Versions 2026.1.6, 12.3.10, 11.5.19.

Workarounds

  1. Restrict reports_config permission to only highly trusted administrators
  2. Deploy a WAF rule to block requests to /admin/bundle/customreports/custom-report/update containing SQL keywords in the configuration parameter
  3. Replace the custom SQL adapter with a parameterized query builder approach

Attack Path (Validation Evidence)

[Entry Point] POST /admin/bundle/customreports/custom-report/update HTTP/1.1
    ↓ (requires reports_config permission + valid admin session)
[Controller] CustomReportController::updateAction()
    ↓  $configuration = decodeJson($request->request->getString('configuration'))
[Config Store] Configuration saved to custom_reports database table
[Config Load] Tool\Config::getByName() loads stdClass $config from DB
    ↓
[Adapter] Sql::getBaseQuery() → Sql::buildQueryString($config)
    ↓  Directly concatenates config fields:
[Vulnerable] $sql .= "\n" . $config['sql'];        // Line 92
            $sql .= "\n" . $config['from'];        // Line 103
            $sql .= "\n" . 'WHERE (' . $config['where'] . ')'; // Line 110
            $sql .= "\n" . $config['groupby'];     // Line 117
[Weak Guard] preg_match('/(ALTER|CREATE|DROP|RENAME|TRUNCATE|UPDATE|DELETE)\s/i', ...)
    ↓  ✗ Bypassable - missing INSERT, UNION, SELECT, subqueries, comments
[Execution] $db->fetchAllAssociative($sql);        // Line 54
    ↓
[Impact] Arbitrary SQL execution - full database compromise

Taint Flow (Validation Evidence)

Source: $request->request->getString('configuration')  (HTTP POST body, user-controlled)
    ↓  json_decode() → stdClass
[Store]  Persistent in database (custom_reports table)
[Load]   Config::getByName() → stdClass $config
    ↓  ✗ No sanitization (only bypassable regex blacklist)
[Sink]   $db->fetchAllAssociative($concatenatedSql)
    ↓
Impact: Attacker-controlled SQL executed against the database

Proof of Concept

Steps

  1. Authenticate as an admin user with reports_config permission
  2. Send a report update request with malicious SQL in the configuration:

Request

http
POST /admin/bundle/customreports/custom-report/update HTTP/1.1
Host: <target-host>
Content-Type: application/x-www-form-urlencoded
Cookie: PHPSESSID=<valid_admin_session>

name=malicious_report&configuration=%7B%22sql%22%3A%22SELECT%20id%2C%20username%2C%20password%20FROM%20users%22%2C%22from%22%3A%22users%22%2C%22where%22%3A%221%3D1%22%2C%22groupby%22%3A%22%22%2C%22dataSourceConfig%22%3A%7B%7D%7D
  1. Access the report data endpoint to retrieve extracted user credentials
  2. Alternatively, the where field can be set to:
   1=1 UNION SELECT TABLE_NAME, TABLE_SCHEMA, 1 FROM INFORMATION_SCHEMA.TABLES

to enumerate all database tables

Expected Result

The custom report returns rows from arbitrary tables beyond what was intended, proving successful SQL injection.

Affected Component

  • File: bundles/CustomReportsBundle/src/Tool/Adapter/Sql.php
  • Method: buildQueryString() (lines 84-135), getBaseQuery() (lines 137-216), getData() (lines 25-58)
  • Class: Pimcore\Bundle\CustomReportsBundle\Tool\Adapter\Sql

Fix Recommendation

Replace the custom SQL concatenation approach with a parameterized query builder:

php
// Instead of:
$sql .= "\n" . $config['sql'];
$sql .= "\n" . $config['from'];
$sql .= "\n" . 'WHERE (' . $config['where'] . ')';

// Use a whitelist-based approach:
// 1. Only allow predefined table names from a whitelist
// 2. Use Doctrine QueryBuilder for WHERE conditions
// 3. Use parameterized queries for all user-supplied values
// 4. Cast LIMIT/OFFSET to integers

$sql .= ' LIMIT ' . (int)$offset . ',' . (int)$limit;

Resources

Technical POC Analysis

CWE-89 (SQL injection via improper neutralization).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

Pimcore's Custom Reports bundle contains a SQL injection vulnerability with publicly available exploit code that allows authenticated users holding the reports_config permission to execute arbitrary database queries, enabling read, write, and deletion of sensitive data. Organizations must immediately restrict report configuration privileges and audit for unauthorized access.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict reports_config permission to only essential administrators; implement detailed database activity monitoring and alerting for SQL injection patterns and unusual query execution; enforce principle of least privilege at the database layer using role-based access control to limit INSERT, UPDATE, and DELETE operations where possible; disable the Custom Reports bundle if not operationally essential; implement network segmentation to contain lateral movement if an authorized account is compromised.

Threat Intelligence Overview

EPSS Score
0.6%
Top 53% exploitable
Prevalence
Medium
enterprise PHP CMS/DAM platform, meaningful but not ubiquitous deployment
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy