Vulnerabilities in pkg:maven/org.apache.wicket/wicket-util

PACKAGE
Advisory Identifier: GHSA-hhwc-gh8h-9rrp
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.wicket/wicket-util

1 Known Advisory Record(s)

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

CVE Identifier CVE-2024-36522
GHSA Identifier GHSA-hhwc-gh8h-9rrp
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Apache Wicket
Package Ecosystem Maven
Published Date
Last Updated

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.

org.apache.wicket:wicket-util fixed: 10.1.0
<dependency>
    <groupId>org.apache.wicket</groupId>
    <artifactId>wicket-util</artifactId>
    <version>10.1.0</version>
</dependency>
org.apache.wicket:wicket-util fixed: 9.18.0
<dependency>
    <groupId>org.apache.wicket</groupId>
    <artifactId>wicket-util</artifactId>
    <version>9.18.0</version>
</dependency>
org.apache.wicket:wicket-util fixed: 8.16.0
<dependency>
    <groupId>org.apache.wicket</groupId>
    <artifactId>wicket-util</artifactId>
    <version>8.16.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2024-36522 Affected Apache Wicket Versions

3 component(s)
Fixed Versions:
10.1.09.18.08.16.0
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?
CVE-2024-36522 is a security vulnerability in Apache Wicket involving Remote code execution via XSLT injection under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Apache Wicket versions are affected?
Affected versions include releases prior to 10.1.0, 9.18.0, 8.16.0 across affected packages: org.apache.wicket:wicket-util.
What version fixes CVE-2024-36522?
Upgrading to 10.1.0, 9.18.0, 8.16.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is wicket-util affected?
Yes, org.apache.wicket:wicket-util is affected in releases prior to 10.1.0, 9.18.0, 8.16.0. Upgrade your dependency to 10.1.0, 9.18.0, 8.16.0 or later.
What CWE is associated with CVE-2024-36522?
CVE-2024-36522 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (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.).
How can I check Maven dependencies for CVE-2024-36522?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.wicket'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}