XML External Entity injection in assertj - CVE-2026-24400
Published: April 6, 2026
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
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
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
- https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html
- https://github.com/assertj/assertj/commit/85ca7eb6609bb179c043b85ae7d290523b1ba79a
- https://github.com/assertj/assertj/releases/tag/assertj-build-3.27.7
- https://github.com/assertj/assertj/security/advisories/GHSA-rqfh-9r24-8c9r
Related Security Bulletins
- XML external entity injection in AssertJ
- Multiple vulnerabilities in IBM Maximo Application Suite - IoT Component
- SUSE update for assertj-core
- Anolis OS update for assertj-core
- MongoDB Enterprise Advanced with IBM update for AssertJ
- Red Hat Enterprise Linux 9 update for assertj-core
- Red Hat Enterprise Linux 9 update for assertj-core
- Red Hat Enterprise Linux 9 update for assertj-core
- Red Hat Enterprise Linux 9 update for assertj-core
- Red Hat Enterprise Linux 10 update for assertj-core