CVE-2024-52298 macro-pdfviewer's preview in WYSIWYG editor allows accessing any PDF document as the last author

High 7.5 Published Updated

An attacker can view any PDF attachment by exploiting the delegate view right feature in the XWiki PDF Viewer macro, bypassing access controls.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-52298?

CVE-2024-52298 is a high-severity missing authorization vulnerability in xwikisas macro-pdfviewer, published on 13 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

macro-pdfviewer is a PDF Viewer Macro for XWiki using Mozilla pdf.js. The PDF Viewer macro allows an attacker to view any attachment using the "Delegate my view right" feature as long as the attacker can view a page whose last author has access to the attachment. For this, the attacker only needs to provide the reference to a PDF file to the macro. To obtain the reference of the desired attachment, the attacker can access the Page Index, Attachments tab. Even if the UI shows N/A, the user can inspect the page and check the HTTP request that fetches the live data entries. The attachment URL is available in the returned JSON for all attachments, including protected ones and allows getting the necessary values. This vulnerability is fixed in version 2.5.6.

Weakness: CWE-615

Which versions are affected by CVE-2024-52298?

It affects 1 product.

Products include Xwiki Pdf Viewer Macro.

How do I fix CVE-2024-52298?

No fix has been published for CVE-2024-52298 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-52298 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-52298 exists.

Sources

Also known as GHSA-hph4-7j37-7c97.

Is CVE-2024-52298 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free