Skip to content
Fencer Vulns
high 8.2

CVE-2022-46751 json

Apache Ivy: XML External Entity vulnerability in Apache Ivy

published 2023-08-21 3 y ago modified 2026-09-10 1 mo ago also GHSA-2jc4-r94c-rp7h , EUVD-2023-2185

cvss
8.2
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.0%
EPSS 2.0% chance of exploitation in 30 days, percentile 80%
public exploits
0
none known

Summary

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

Patch / fix

  • maven org.apache.ivy:ivy 2.5.2
  • apache ivy 2.5.2
  • apache-ivy SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES 15 SP3-LTSS +9 more 2.5.2-150200.3.9.1

suse advisories SUSE-SU-2023:4367-1

  • apache-ivy openSUSE Tumbleweed 2.5.2-1.1

opensuse advisories openSUSE-SU-2024:13148-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-46751 updated cvss 8.2

apache-ivy: XML External Entity vulnerability

  • Red Hat build of Apache Camel for Spring Boot 3 apache-ivy
    affected: no fix available
  • Red Hat Enterprise Linux 7 apache-ivy, apache-ivy-javadoc
    affected: no fix planned “Out of support scope”
  • Red Hat Fuse 7 apache-ivy Red Hat Integration Camel K 1 apache-ivy Red Hat Software Collections rh-maven36-apache-ivy, rh-maven36-apache-ivy-javadoc
    affected: no fix planned “Will not fix”
  • Red Hat MTA 6.2 for RHEL 8 mta/mta-ui-rhel9 6.2.2-2, mta/mta-hub-rhel9 6.2.2-2, mta/mta-rhel8-operator 6.2.2-3, mta/mta-operator-bundle 6.2.2-5, mta/mta-pathfinder-rhel9 6.2.2-2, mta/mta-windup-addon-rhel9 6.2.2-3
    fixed: vendor fix RHSA-2024:1027
  • Red Hat MTR 1.2.4
    fixed: vendor fix RHSA-2024:0720
  • Red Hat AMQ Streams 2.6.0
    fixed: vendor fix RHSA-2023:7678
  • Red Hat RHINT Camel-Springboot 4.0.0
    fixed: vendor fix RHSA-2023:5441
  • Red Hat A-MQ Clients 2 apache-ivy Red Hat Data Grid 8 apache-ivy
    not affected: vulnerable code not present
show 2 more
  • Red Hat Enterprise Linux 8 apache-ivy, apache-ivy-javadoc
    not affected: component not present
  • Red Hat JBoss Data Grid 7 apache-ivy Red Hat JBoss Enterprise Application Platform 6 apache-ivy Red Hat JBoss Enterprise Application Platform 7 apache-ivy Red Hat JBoss Enterprise Application Platform 8 apache-ivy Red Hat JBoss Enterprise Application Platform Expansion Pack apache-ivy Red Hat OpenShift Application Runtimes apache-ivy
    +1 more products
    Red Hat Single Sign-On 7 apache-ivy
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

2.00% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
NVD 3.1 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
CNA 3.1 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
GitHub 3.1 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L

Affected packages

ecosystem package affected fixed in
maven org.apache.ivy:ivy
<2.5.2
2.5.2

Affected products

  • Apache Software Foundation Apache Ivy
  • apache ivy

Classification

Weakness
  • CWE-611 Improper Restriction of XML External Entity Reference
  • CWE-91 XML Injection

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.