Description
Improper Restriction of XML External Entity Reference, XML Injection (aka Blind XPath Injection) vulnerability in Apache Software Foundation Apache Ivy.This issue affects any version of Apache Ivy prior to 2.5.2.
When Apache Ivy prior to 2.5.2 parses XML files - either its own configuration, Ivy files or Apache Maven POMs - it will allow downloading external document type definitions and expand any entity references contained therein when used.
This can be used to exfiltrate data, access resources only the machine running Ivy has access to or disturb the execution of Ivy in different ways.
Starting with Ivy 2.5.2 DTD processing is disabled by default except when parsing Maven POMs where the default is to allow DTD processing but only to include a DTD snippet shipping with Ivy that is needed to deal with existing Maven POMs that are not valid XML files but are nevertheless accepted by Maven. Access can be be made more lenient via newly introduced system properties where needed.
Users of Ivy prior to version 2.5.2 can use Java system properties to restrict processing of external DTDs, see the section about "JAXP Properties for External Access restrictions" inside Oracle's "Java API for XML Processing (JAXP) Security Guide".
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache Ivy | 1.0.0 – ≤ 2.5.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | apache-ivy | 2.5.2-150200.3.9.1 | SUSE-SU-2023:4367-1 |
| SLES 15 SP4 | apache-ivy | 2.5.2-150200.3.9.1 | SUSE-SU-2023:4367-1 |
| SLES 15 SP3 | apache-ivy | 2.5.2-150200.3.9.1 | SUSE-SU-2023:4367-1 |
| SLES 15 SP2 | apache-ivy | 2.5.2-150200.3.9.1 | SUSE-SU-2023:4367-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP3 | apache-ivy | 2.5.2-150200.3.9.1 | SUSE-SU-2023:4367-1 |
| SLES for SAP 15 SP2 | apache-ivy | 2.5.2-150200.3.9.1 | SUSE-SU-2023:4367-1 |
| SLE HPC 15 SP3 | apache-ivy | 2.5.2-150200.3.9.1 | SUSE-SU-2023:4367-1 |
| SLE HPC 15 SP2 | apache-ivy | 2.5.2-150200.3.9.1 | SUSE-SU-2023:4367-1 |
| SUSE Enterprise Storage 7.1 | apache-ivy | 2.5.2-150200.3.9.1 | SUSE-SU-2023:4367-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | apache-ivy | 2.5.2-1.1 | openSUSE-SU-2024:13148-1 |
| openSUSE Leap 15.5 | apache-ivy | 2.5.2-150200.3.9.1 | SUSE-SU-2023:4367-1 |
| openSUSE Leap 15.4 | apache-ivy | 2.5.2-150200.3.9.1 | SUSE-SU-2023:4367-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | apache-ivy +1 | 2.5.1-1.amzn2023.0.2 | ALAS2023-2023-336 |
| Amazon Linux 2 | apache-ivy +1 | 2.3.0-4.amzn2.0.2 | ALAS2-2023-2302 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | gradle-8 | 8.4.0-r0 | — |
| Wolfi rolling | gradle-stage0 | 8.0.1-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.ivy:ivy | < 2.5.2 | 2.5.2 | GHSA-2jc4-r94c-rp7h |
Advisories 10
- WID-SEC-2024-0794 Dell ECS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2026
- WID-SEC-2023-2099 Apache Ivy: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Jul 5, 2026
- openSUSE-SU-2024:13148-1 apache-ivy-2.5.2-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-3070 Red Hat JBoss A-MQ: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 16, 2025
- SUSE-SU-2023:4367-1 Security update for apache-ivy SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2024-3456 Jenkins Plugins: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 4, 2025
- WID-SEC-2024-0106 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 16, 2024
- ALAS2-2023-2302 Important: apache-ivy security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 19, 2023
- ALAS2023-2023-336 Important: apache-ivy security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Sep 7, 2023
- WID-SEC-2023-2286 Jenkins Plugins: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 6, 2023
References
- https://docs.oracle.com/en/java/javase/13/security/java-api-xml-processing-jaxp-security-guide.html#GUID-94ABC0EE-9DC8-44F0-84AD-47ADD5340477 mitigation
- https://gitbox.apache.org/repos/asf?p=ant-ivy.git;a=commit;h=2be17bc18b0e1d4123007d579e43ba1a4b6fab3d patch
- https://lists.apache.org/thread/9gcz4xrsn8c7o9gb377xfzvkb8jltffr release-notes
- https://lists.apache.org/thread/1dj60hg5nr36kjr4p1100dwjrqookps8 vendor-advisory
- http://www.openwall.com/lists/oss-security/2023/09/06/9