CVE-2024-36522 Apache Wicket: Remote code execution via XSLT injection
Attackers can execute arbitrary code via XSLT injection in Apache Wicket when processing untrusted input without validation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-36522?
CVE-2024-36522 is a critical code injection vulnerability in Apache Wicket, published on 12 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The default configuration of XSLTResourceStream.java is vulnerable to remote code execution via XSLT injection when processing input from an untrusted source without validation. Users are recommended to upgrade to versions 10.1.0, 9.18.0 or 8.16.0, which fix this issue.
Weakness: CWE-74
Which versions are affected by CVE-2024-36522?
6 open source packages ship an affected version, including org.apache.wicket:wicket-util. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.wicket:wicket-util Maven | From 10.0.0-M1 | 10.1.0 |
org.apache.wicket:wicket-util Maven | From 10.0.0-M1 | 10.1.0 |
org.apache.wicket:wicket-util Maven | From 8.0.0 | 8.16.0 |
org.apache.wicket:wicket-util Maven | From 8.0.0 | 8.16.0 |
org.apache.wicket:wicket-util Maven | From 9.0.0 | 9.18.0 |
org.apache.wicket:wicket-util Maven | From 9.0.0 | 9.18.0 |
Products include Apache Wicket.
How do I fix CVE-2024-36522?
Upgrade org.apache.wicket:wicket-util to a fixed version for your release line: 10.1.0, 8.16.0 or 9.18.0.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-36522 being exploited?
There is no known exploitation of CVE-2024-36522 in the wild and no public exploit code.
Other vulnerabilities in Apache Wicket
- CVE-2026-40010 Apache Wicket: possible session fixation using AuthenticatedWebSession
- CVE-2016-6793 Deserialization in n/a
- CVE-2016-6806 Apache Wicket vulnerable to CSRF attacks
- CVE-2026-71257 Apache Wicket: Configured file upload limits are not enforced when the multipart request has already been parsed
- CVE-2026-43646 Apache Wicket: crafted URLs can bypass PackageResourceGuard
Sources
Also known as GHSA-hhwc-gh8h-9rrp.