CVE-2024-36522 Apache Wicket: Remote code execution via XSLT injection

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
org.apache.wicket:wicket-util MavenFrom 10.0.0-M110.1.0
org.apache.wicket:wicket-util MavenFrom 10.0.0-M110.1.0
org.apache.wicket:wicket-util MavenFrom 8.0.08.16.0
org.apache.wicket:wicket-util MavenFrom 8.0.08.16.0
org.apache.wicket:wicket-util MavenFrom 9.0.09.18.0
org.apache.wicket:wicket-util MavenFrom 9.0.09.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.

Sources

Also known as GHSA-hhwc-gh8h-9rrp.

Is CVE-2024-36522 in your software?

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

Check your SBOMs for free