Advisory

GHSA-xr3m-6gq6-22cg

Also known as: CVE-2024-11954

Summary

Pimcore Authenticated Stored Cross-Site Scripting (XSS) Via Search Document

Details

Summary

A Stored Cross-Site Scripting (XSS) vulnerability in PIMCORE allows remote attackers to inject arbitrary web script or HTML via the PDF upload functionality. This can result in the execution of malicious scripts in the context of the user's browser when the PDF is viewed, leading to potential session hijacking, defacement of web pages, or unauthorized access to sensitive information.

Details

The vulnerability is present in the PDF upload functionality of the PIM Core Upload module. When a user uploads a PDF file, the application fails to properly sanitize the content, allowing embedded scripts to be executed when the PDF is viewed. The affected code is located in the file handling and rendering logic of the PDF upload feature.

PoC

  1. Log in as Administrator

image

  1. Hover to Assets

image

  1. Right click and click "Add Asset(s) > upload files

image

  1. Upload malicious pdf

image

  1. Click on search and select document

image

  1. copy the path and open to a new tab

https://demo.pimcore.fun/admin/Sample C

image

  1. XSS PDF can be access without authentication.

image

Image showing no cookies indicator that there are no session currently in

image

Impact
This is a Stored Cross-Site Scripting (XSS) vulnerability. It impacts any user who views the malicious PDF, potentially leading to session hijacking, defacement of web pages, or unauthorized access to sensitive information. The severity is high due to the potential for significant impact on confidentiality and integrity.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-01-28 19:12 UTC
Modified
2026-07-08 06:53 UTC

Affected packages and fixes

pimcore/pimcore

Packagist · All systems

Affected

  • introduced 11.4.2, fixed 11.5.3 (ecosystem)

Fixed versions

11.5.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences