Skip to content
OpenAdvisories
High · 8.2 CVE-2022-46751 EUVD-2023-2185GHSA-2jc4-r94c-rp7h

Apache Ivy: XML External Entity vulnerability in Apache Ivy

Published Aug 21, 2023 · Updated Feb 13, 2025 · Assigned by apache

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Wolfi rolling gradle-8 8.4.0-r0 —
Wolfi rolling gradle-stage0 8.0.1-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.ivy:ivy < 2.5.2 2.5.2 GHSA-2jc4-r94c-rp7h

Advisories 10

References