What’s Vulnerable › Vulnerabilities
CVE-2024-42489: Pro Macros Remote Code Execution via Viewpdf and similar macros
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-08-12 · updated 2026-06-17
- Weakness: CWE-74
Description
Pro Macros provides XWiki rendering macros. Missing escaping in the Viewpdf macro allows any user with view right on the `CKEditor.HTMLConverter` page or edit or comment right on any page to perform remote code execution. Other macros like Viewppt are vulnerable to the same kind of attack. This vulnerability is fixed in 1.10.1.
Affected products
- xwikisas xwiki-pro-macros: from 1.0 before 1.10.1 — fixed in 1.10.1
How to fix
Upgrade to a fixed version: xwikisas xwiki-pro-macros 1.10.1. Check the vendor advisory for mitigations.
References
- https://github.com/xwikisas/xwiki-pro-macros/blob/main/xwiki-pro-macros-ui/src/main/resources/Confluence/Macros/Viewpdf.xml#L265-L267
- https://github.com/xwikisas/xwiki-pro-macros/commit/199553c84901999481a20614f093af2d57970eba
- https://github.com/xwikisas/xwiki-pro-macros/security/advisories/GHSA-cfq3-q227-7j65
Get alerted when CVE-2024-42489 or the next vulnerability affects your stack