CVE-2024-31573
Java vulnerability analysis and mitigation

Overview

CVE-2024-31573 affects XMLUnit for Java versions prior to 2.10.0. The vulnerability stems from insecure default settings when processing XSLT stylesheets, where XSLT extension functions were not disabled by default (GitHub Advisory).

Technical details

The vulnerability exists in XMLUnit's XSLT transformation functionality where extension functions were enabled by default. This configuration could allow arbitrary code execution when processing untrusted stylesheets. The issue specifically relates to the TransformerFactoryConfigurer component, which did not have extension functions disabled in its default configuration (GitHub Commit).

Impact

When XMLUnit is used to transform data with a stylesheet from an untrusted source, this vulnerability could potentially lead to arbitrary code execution. In cases where the stylesheet can be provided externally, this may result in remote code execution (GitHub Advisory).

Mitigation and workarounds

Users are advised to upgrade to XMLUnit for Java 2.10.0 where the default settings have been secured. For those unable to upgrade, a workaround is available by explicitly using XMLUnit's APIs to pass in a pre-configured TraX TransformerFactory with extension functions disabled via features and attributes. The setFactory or setTransformerFactory methods, available since XMLUnit for Java 2.0.0, can be used for this purpose (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management