cve.bz

CVE-2024-31573 xmlunit xmlunit for java

4.0 mediumEPSS 0.3%Fix available

Medium (4.0) in xmlunit xmlunit for java. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in org.xmlunit:xmlunit-core 2.10.0.

On this page
XMLUnit for Java before 2.10.0, in the default configuration, might allow code execution via an untrusted stylesheet (used for an XSLT transformation), because XSLT extension functions are enabled.

Severity

CVSS 3.1

4.0 medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-10-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-669 Incorrect Resource Transfer Between Spheres
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • org.xmlunit:xmlunit-core (Maven): fixed in 2.10.0

Ask an AI about this CVE

Show the promptExplain CVE-2024-31573 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-31573?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-31573?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-31573 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
XMLUnit for Javafrom 2.0.0 before 2.10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-chfm-68vv-pvw5Mavenorg.xmlunit:xmlunit-core<2.10.02.10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morexmlunitno fix listedUBUNTU-CVE-2024-31573

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat AMQ Broker 7xmlunit-coreFix deferred
Red Hat AMQ Clientsxmlunit-coreFix deferred
Red Hat build of Apache Camel for Spring Boot 4xmlunit-coreFix deferred
Red Hat build of Apache Camel - HawtIO 4xmlunit-coreFix deferred
Red Hat build of Apicurio Registry 2xmlunit-coreFix deferred
Red Hat build of Apicurio Registry 3xmlunit-coreFix deferred
Red Hat build of Debezium 2xmlunit-coreFix deferred
Red Hat build of Debezium 3xmlunit-coreFix deferred
Red Hat build of OptaPlanner 8xmlunit-coreFix deferred
Red Hat Data Grid 8xmlunit-coreFix deferred
Red Hat Fuse 7xmlunit-coreOut of support scope
Red Hat JBoss Enterprise Application Platform 7xmlunit-coreFix deferred
Red Hat JBoss Enterprise Application Platform 8xmlunit-coreFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packxmlunit-coreFix deferred
Red Hat Process Automation 7xmlunit-coreFix deferred
Red Hat Single Sign-On 7xmlunit-coreFix deferred
streams for Apache Kafka 2xmlunit-coreFix deferred
streams for Apache Kafka 3xmlunit-coreFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-31573.

References

Check your stackJSON