When performing XSLT transformations XMLUnit for Java before 2.10.0 did not disable XSLT extension functions by default. Depending on the XSLT processor being used this could allow arbitrary code to be executed when XMLUnit is used to transform data with a stylesheet who's source can not be trusted. If the stylesheet can be provided externally this may even lead to a remote code execution.
CVE-2024-31573 - Medium Severity Vulnerability
XMLUnit for Java
Library home page: https://www.xmlunit.org/
Path to dependency file: /packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/build.gradle.kts
Path to vulnerable library: /tmp/ws-ua_20210923153209_WONNNV/downloadResource_VIIGZP/20210923154433/xmlunit-core-2.6.2.jar
Dependency Hierarchy: - spring-boot-starter-test-2.2.0.M3.jar (Root Library) - :x: **xmlunit-core-2.6.2.jar** (Vulnerable Library)
Found in HEAD commit: ceec9f73fd05cfdbf0061d53c9d0c42d43e85d22
Found in base branch: master
When performing XSLT transformations XMLUnit for Java before 2.10.0 did not disable XSLT extension functions by default. Depending on the XSLT processor being used this could allow arbitrary code to be executed when XMLUnit is used to transform data with a stylesheet who's source can not be trusted. If the stylesheet can be provided externally this may even lead to a remote code execution.
Publish Date: 2024-04-05
URL: CVE-2024-31573
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: Low
For more information on CVSS3 Scores, click here.Type: Upgrade version
Origin: https://github.com/advisories/GHSA-chfm-68vv-pvw5
Release Date: 2024-04-05
Fix Resolution: org.xmlunit:xmlunit-core:2.10.0
Step up your Open Source Security Game with Mend here