{"id":"CVE-2026-23492","aliases":["GHSA-qvr7-7g55-69xj"],"url":"https://o3.security/vulnerability/CVE-2026-23492","summary":"Pimcore has a Blind SQL Injection in Admin Search Find API due to an incomplete fix for CVE-2023-30848","details":"### Summary\nAn **incomplete SQL injection patch** in the Admin Search Find API allows an authenticated attacker to perform **blind SQL injection**.\nAlthough CVE-2023-30848 attempted to mitigate SQL injection by removing SQL comments (--) and catching syntax errors, the fix is insufficient. Attackers can still inject SQL payloads that do not rely on comments and infer database information via blind techniques. This vulnerability affects the admin interface and can lead to **database information disclosure**.\n\n### Details\nThe vulnerability exists in the Admin Search Find API endpoint:\n```\n/admin/search/search/find\n```\nIn CVE-2023-30848, the following patch was applied:\n\n- SQL comments are removed by replacing `--`\n- SQL syntax errors are caught and replaced with a generic exception\n\nRelevant commit:  \nhttps://github.com/pimcore/pimcore/commit/25ad8674886f2b938243cbe13e33e204a2e35cc3\n\nKey changes include:\n```\n// remove sql comments\n$fields = str_replace('--', '', $fields);\n\ntry {\n    $hits = $searcherList->load();\n} catch (SyntaxErrorException $syntaxErrorException) {\n    throw new \\InvalidArgumentException('Check your arguments.');\n}\n```\nHowever, this mitigation is incomplete for the following reasons:\n\n**1. Only `--` is filtered**\n\nSQL injection does not require SQL comments. Payloads using boolean conditions, SQL functions, or time-based expressions remain effective.\n\n**2. Exception handling only suppresses error output**\n\nWhile syntax errors no longer produce detailed error messages, the underlying SQL query is still executed. This allows attackers to perform blind SQL injection.\n\n**3. User-controlled input is still used in SQL query construction**\nThe `fields[]` parameter is attacker-controlled and can be abused to inject SQL expressions into the generated query.\n\nAs a result, attackers can craft payloads that do not trigger syntax errors and still influence SQL execution.\n### PoC\nThe following request demonstrates a **blind SQL injection** via the `fields[]` parameter.\n\n**Boolean-based Blind Injection**\n```\nGET /admin/search/search/find?query=2&\nfields[]=field1 AND (SELECT CASE WHEN (1=1) THEN 1 ELSE 0 END)=1~field2&\nfilter=[{\"property\":\"value\"}]&\nclass=classname\n```\n**Time-based Blind Injection**\n```\nGET /admin/search/search/find?query=2&\nfields[]=field1 AND IF(1=1,SLEEP(5),0)~field2&\nfilter=[{\"property\":\"value\"}]&\nclass=classname\n```\n**Observed behavior:**\n\n- When the condition is true, the response is delayed (e.g., ~5 seconds)\n\n- When the condition is false, the response is returned immediately\n\nThis confirms that injected SQL expressions are executed successfully.\n### Impact\nThis is a **Blind SQL Injection vulnerability.**\n\n- Affected users: Systems exposing the Admin Search Find API to authenticated users\n\n- Attack requirements: Authenticated access to the admin interface\n\n- Potential impact:\n\n  - Database schema enumeration\n  \n  - Extraction of sensitive data via blind SQL injection\n  \n  - Potential full database compromise depending on database privileges\n\nThis issue demonstrates that the fix for CVE-2023-30848 is **incomplete.**","published":"2026-01-14T18:21:55.237Z","modified":"2026-08-12T03:51:37.501802656Z","cvss":{"score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.00436,"percentile":0.36139,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"pimcore/pimcore","fixedVersion":"12.3.1"},{"ecosystem":"Packagist","name":"pimcore/pimcore","fixedVersion":"11.5.14"}],"fix":{"url":"https://github.com/pimcore/pimcore/commit/25ad8674886f2b938243cbe13e33e204a2e35cc3","label":"pimcore/pimcore@25ad867"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23492.json"},{"type":"ADVISORY","url":"https://github.com/pimcore/pimcore/security/advisories/GHSA-qvr7-7g55-69xj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23492"},{"type":"FIX","url":"https://github.com/pimcore/pimcore/commit/25ad8674886f2b938243cbe13e33e204a2e35cc3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6mhm-gcpf-5gr8"},{"type":"PACKAGE","url":"https://github.com/pimcore/pimcore"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:37.501802656Z"}}