CVE-2024-42489 Pro Macros Remote Code Execution via Viewpdf and similar macros

Critical 10.0 Published Updated

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.

Sources

Also known as GHSA-cfq3-q227-7j65.

Is CVE-2024-42489 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free