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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-13T15:42:42.501Z
- Modified: 2026-06-17T08:06:57.893Z
- Weaknesses: CWE-615
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xwikisas macro-pdfviewer: >= 1.6.2, < 2.5.6
- xwikisas macro_pdfviewer: up to 1.6.2; before 2.5.6
- xwiki pdf_viewer_macro: before 2.5.6

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/xwikisas/macro-pdfviewer/security/advisories/GHSA-hph4-7j37-7c97> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2024-52298](https://www.cve.org/CVERecord?id=CVE-2024-52298), CVE Terms of Use, modified 2024-11-13
- NVD: [CVE-2024-52298](https://nvd.nist.gov/vuln/detail/CVE-2024-52298), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-52298 · Whole record: https://cve.day/CVE-2024-52298.json · Rebuilt by cve.day 2026-11-25T22:58:48.199Z
