Vulnerabilities in pkg:maven/org.apache.wicket/wicket-util
PACKAGECVE-2024-36522 is a HIGH remote code execution vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Apache Wicket libraries in the Maven ecosystem. The issue involves remote code execution via xslt injection. Remediation is available by upgrading affected packages to version 10.1.0, 9.18.0, 8.16.0.
pkg:maven/org.apache.wicket/wicket-util
Vulnerability advisories affecting package pkg:maven/org.apache.wicket/wicket-util. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-hhwc-gh8h-9rrp | CVE-2024-36522 | HIGH | Apache Wicket: Remote code execution via XSLT injection |
CVE-2024-36522 at a Glance
How to Fix CVE-2024-36522
To remediate this vulnerability, upgrade all affected Apache Wicket dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<version>10.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<version>9.18.0</version>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<version>8.16.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.wicket
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-36522, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.wicket
Analyze the terminal output to locate any version of Apache Wicket in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.1.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.wicket command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Apache Wicket, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-36522 Affected Apache Wicket Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.wicket:wicket-util
|
Maven |
≥ 10.0.0-M1
< 10.1.0
|
10.1.0
|
|
org.apache.wicket:wicket-util
|
Maven |
≥ 9.0.0
< 9.18.0
|
9.18.0
|
|
org.apache.wicket:wicket-util
|
Maven |
≥ 8.0.0
< 8.16.0
|
8.16.0
|
References
Frequently Asked Questions
What is CVE-2024-36522?
Which Apache Wicket versions are affected?
What version fixes CVE-2024-36522?
Is wicket-util affected?
What CWE is associated with CVE-2024-36522?
How can I check Maven dependencies for CVE-2024-36522?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hhwc-gh8h-9rrp",
"modified" : "2024-07-18T15:19:40Z",
"published" : "2024-07-12T15:31:26Z",
"aliases" : [ "CVE-2024-36522" ],
"summary" : "Apache Wicket: Remote code execution via XSLT injection",
"details" : "The default configuration of XSLTResourceStream.java is vulnerable to remote code execution via XSLT injection when processing input from an untrusted source without validation.\nUsers are recommended to upgrade to versions 10.1.0, 9.18.0 or 8.16.0, which fix this issue.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.wicket:wicket-util"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.0.0-M1"
}, {
"fixed" : "10.1.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.wicket:wicket-util"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0"
}, {
"fixed" : "9.18.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.wicket:wicket-util"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.16.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-36522"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/wicket"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/w613qh7yors840pbx00l1pq6wkl9jzkc"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2024/07/12/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-07-12T21:00:43Z",
"nvd_published_at" : "2024-07-12T13:15:11Z"
}
}