CVE-2024-42489 Pro Macros Remote Code Execution via Viewpdf and similar macros
Attackers with view or edit rights can execute arbitrary code via improper escaping in Viewpdf and similar macros.
- 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-42489?
CVE-2024-42489 is a critical code injection vulnerability in xwikisas xwiki-pro-macros, published on 12 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-74
Which versions are affected by CVE-2024-42489?
It affects 1 product.
Products include Xwiki Pro Macros.
How do I fix CVE-2024-42489?
No fix has been published for CVE-2024-42489 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-42489 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-42489 exists.
Other vulnerabilities in xwikisas xwiki-pro-macros
- CVE-2025-55727 XWiki Remote Macros vulnerable to remote code execution from width parameter in the column macro
- CVE-2025-55728 XWiki Remote Macros vulnerable to remote code execution using the panel macro
- CVE-2025-65036 XWiki Remote Macros vulnerable to remote code execution using the confluence details summary macro
- CVE-2025-65089 XWiki view file macro: User can view content of office file without view rights on the attachment
Sources
Also known as GHSA-cfq3-q227-7j65.