Cyber Resilience

CVE-2024-52298

Xwiki Pdf Viewer Macro ≤ 2.5.6

Public PoC
Published
13 November 2024
Modified
18 November 2024
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Score 0.0066 48th percentile
Risk Priority 58 floored blend · peak EPSS

Summary

CVE-2024-52298 is a high-severity Inclusion of Sensitive Information in Source Code Comments (CWE-615) vulnerability in Xwiki Pdf Viewer Macro. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique File and Directory Discovery (T1083); ranked at the 48th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-15 (Development Process, Standards, and Tools) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1083 File and Directory Discovery Discovery
Adversaries may enumerate files and directories or may search in specific locations of a host or network share for certain information within a file system.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1594 Search Victim-Owned Websites Reconnaissance
Adversaries may search websites owned by the victim for information that can be used during targeting.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-52300Same product: Xwiki Pdf Viewer Macro
CVE-2024-52299Same product: Xwiki Pdf Viewer Macro
CVE-2023-22457Same vendor: Xwiki
CVE-2023-40572Same vendor: Xwiki
CVE-2023-37277Same vendor: Xwiki
CVE-2023-48292Same vendor: Xwiki
CVE-2023-26478Same vendor: Xwiki
CVE-2025-32968Same vendor: Xwiki
CVE-2025-32969Same vendor: Xwiki
CVE-2024-31985Same vendor: Xwiki

Affected Assets

xwiki
pdf viewer macro
≤ 2.5.6

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Code review and static analysis performed under developer testing can locate sensitive data placed in source comments.

Requiring documented development standards and tools can forbid embedding sensitive information in comments during coding.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices such as code review and comment sanitization directly prevent embedding sensitive data in source comments.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing may incidentally discover sensitive comments, but that is not the control’s primary intent.

prevents

Secure SDLC practices can include code-review gates that catch sensitive comments before release.

prevents

Secure-coding standards and training directly discourage embedding secrets or sensitive data in comments.

mitigates

Restricting access to source code reduces the chance that sensitive comments are exposed to unauthorized readers.

none

Test data handling rules can extend to source comments, but the control focuses on test datasets rather than production code comments.

References