XML External Entity injection in assertj - CVE-2026-24400

 

XML External Entity injection in assertj - CVE-2026-24400

Published: April 6, 2026


Vulnerability identifier: #VU124873
CSH Severity: High
CVSS v4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-24400
CWE-ID: CWE-611
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to `org.assertj.core.util.xml.XmlStringPrettyFormatter`: the `toXmlDocument(String)` method initializes `DocumentBuilderFactory` with default settings, without disabling DTDs or external entities. A remote attacker can pass a specially crafted XML code to the affected application and view contents of arbitrary files on the system or initiate requests to external systems.

Successful exploitation of the vulnerability may allow an attacker to view contents of arbitrary file on the server or perform network scanning of internal and external infrastructure.


Affected software

assertj
MongoDB Enterprise Advanced with IBM
Maximo Application Suite - IoT Component
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat CodeReady Linux Builder for ARM 64 - Extended Update Support
Red Hat CodeReady Linux Builder for IBM z Systems - Extended Update Support
Red Hat CodeReady Linux Builder for Power, little endian - Extended Update Support
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
openSUSE Leap
Anolis OS
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
assertj-core (Red Hat package)
assertj-core
assertj-core-javadoc

How to mitigate CVE-2026-24400

Install updates from vendor's website.

assertj - update to 3.27.7
Maximo Application Suite - IoT Component - addressed in versions 8.7.32, 8.8.29, 9.0.18, 9.1.9
assertj-core (Red Hat package) - addressed in versions 3.19.0-5.el9_2.2, 3.19.0-5.el9_4.2, 3.19.0-9.el9_6.1, 3.19.0-9.el9_8.1, 3.24.2-9.el10_0.1
assertj-core - update to 3.24.2-2
assertj-core-javadoc - update to 3.24.2-2
assertj-core - update to 3.27.7-150200.5.9.2

External References

Related Security Bulletins