CVE-2022-46751 Apache Ivy: XML External Entity vulnerability in Apache Ivy
An attacker can exploit XML External Entity vulnerabilities in Apache Ivy to exfiltrate data or disrupt execution by parsing malicious XML files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-46751?
CVE-2022-46751 is a high-severity vulnerability in Apache Ivy, published on 21 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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".
Which versions are affected by CVE-2022-46751?
2 open source packages ship an affected version, including org.apache.ivy:ivy. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.ivy:ivy Maven | All versions | 2.5.2 |
org.apache.ivy:ivy Maven | All versions | 2.5.2 |
Linux distribution packages (13)
apache-ivy SUSE:Enterprise Storage 7.1 | All versions | 2.5.2-150200.3.9.1 |
apache-ivy SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.5.2-150200.3.9.1 |
apache-ivy SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 2.5.2-150200.3.9.1 |
apache-ivy SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.5.2-150200.3.9.1 |
apache-ivy SUSE:Linux Enterprise Module for Development Tools 15 SP4 | All versions | 2.5.2-150200.3.9.1 |
apache-ivy SUSE:Linux Enterprise Module for Development Tools 15 SP5 | All versions | 2.5.2-150200.3.9.1 |
apache-ivy SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 2.5.2-150200.3.9.1 |
apache-ivy SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 2.5.2-150200.3.9.1 |
apache-ivy SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 2.5.2-150200.3.9.1 |
apache-ivy SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 2.5.2-150200.3.9.1 |
apache-ivy openSUSE:Leap 15.4 | All versions | 2.5.2-150200.3.9.1 |
apache-ivy openSUSE:Leap 15.5 | All versions | 2.5.2-150200.3.9.1 |
apache-ivy openSUSE:Tumbleweed | All versions | 2.5.2-1.1 |
Products include Apache Ivy.
How do I fix CVE-2022-46751?
Upgrade org.apache.ivy:ivy to 2.5.2 or later.
Is CVE-2022-46751 being exploited?
There is no known exploitation of CVE-2022-46751 in the wild and no public exploit code.
Other vulnerabilities in Apache Ivy
Sources
Also known as GHSA-2jc4-r94c-rp7h, MINI-c3pw-49hq-53gg, SUSE-SU-2023:4367-1, openSUSE-SU-2024:13148-1.