# CVE-2024-52299: The PDF viewer macro allows accessing any attachment without access right checks

- 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.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2024-11-13T15:29:07.107Z
- Modified: 2026-06-17T08:06:58.017Z
- Weaknesses: CWE-340
- 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. Any user with view right on XWiki.PDFViewerService can access any attachment stored in the wiki as the "key" that is passed to prevent this is computed incorrectly, calling skip on the digest stream doesn't update the digest. This is fixed in 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-522m-m242-jr9p> (third-party-advisory)

## Sources

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

---

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