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-ivyaffected: no fix available
-
Red Hat Enterprise Linux 7 apache-ivy, apache-ivy-javadocaffected: 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-javadocaffected: 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-3fixed: vendor fix RHSA-2024:1027
-
Red Hat MTR 1.2.4fixed: vendor fix RHSA-2024:0720
-
Red Hat AMQ Streams 2.6.0fixed: vendor fix RHSA-2023:7678
-
Red Hat RHINT Camel-Springboot 4.0.0fixed: vendor fix RHSA-2023:5441
-
Red Hat A-MQ Clients 2 apache-ivy Red Hat Data Grid 8 apache-ivynot affected: vulnerable code not present
show 2 moreshow fewer
-
Red Hat Enterprise Linux 8 apache-ivy, apache-ivy-javadocnot 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-ivynot affected: vulnerable code not present
+1 more productsfewer
Red Hat Single Sign-On 7 apache-ivy
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
References
-
gitbox.apache.org
/repos/asf?p=ant-ivy.git;a=commit;h=2be17bc18b0e1d4123007d579e43ba1a4b6fab3d
patch, web, vendor-advisory
-
github.com
/apache/ant-ivy/commit/2be17bc18b0e1d4123007d579e43ba1a4b6fab3d
web
-
lists.apache.org
/thread/1dj60hg5nr36kjr4p1100dwjrqookps8
vendor-advisory, web, mailing-list
-
lists.apache.org
/thread/9gcz4xrsn8c7o9gb377xfzvkb8jltffr
release-notes, web, mailing-list, vendor-advisory
-
docs.oracle.com
/en/java/javase/13/security/java-api-xml-processing-jaxp-security-guide.html#GUID-94ABC0EE-9DC8-44F0-84AD-47AD
mitigation, web, third-party-advisory
-
openwall.com
/lists/oss-security/2023/09/06/9
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-46751
advisory
-
github.com
/apache/ant-ivy
package
Sources
- CVE List CVE-2022-46751
- GitHub Advisory GHSA-2jc4-r94c-rp7h
- NVD CVE-2022-46751
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.