CVE-2022-46751

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

Configuration 1 (hide)

cpe:2.3:a:apache:ivy:*:*:*:*:*:*:*:*

History

10 Nov 2026, 12:10

Type Values Removed Values Added
Summary
  • (es) Vulnerabilidad de Restricción Inadecuada de Referencia a XML External Entity, Inyección XML (también conocida como Inyección XPath Ciega) en Apache Ivy de Apache Software Foundation. Este problema afecta a cualquier versión de Apache Ivy anterior a la 2.5.2. Cuando Apache Ivy anterior a la 2.5.2 analiza archivos XML - ya sea su propia configuración, archivos Ivy o POMs de Apache Maven - permitirá la descarga de definiciones de tipo de documento externas y expandirá cualquier referencia de entidad contenida en ellos cuando se utilicen. Esto puede usarse para exfiltrar datos, acceder a recursos a los que solo tiene acceso la máquina que ejecuta Ivy o perturbar la ejecución de Ivy de diferentes maneras. A partir de Ivy 2.5.2, el procesamiento de DTD está deshabilitado por defecto, excepto al analizar POMs de Maven, donde el valor predeterminado es permitir el procesamiento de DTD, pero solo para incluir un fragmento de DTD que se distribuye con Ivy y que es necesario para tratar con POMs de Maven existentes que no son archivos XML válidos pero que, sin embargo, son aceptados por Maven. El acceso puede hacerse más permisivo a través de propiedades de sistema recién introducidas cuando sea necesario. Los usuarios de Ivy anteriores a la versión 2.5.2 pueden usar propiedades de sistema de Java para restringir el procesamiento de DTDs externas; consulte la sección sobre ’Propiedades JAXP para restricciones de acceso externo’ dentro de la ’Guía de seguridad de la API de Java para procesamiento XML (JAXP)’ de Oracle.

13 Feb 2025, 17:15

Type Values Removed Values Added
Summary (en) 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". (en) 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".

21 Nov 2024, 07:31

Type Values Removed Values Added
References () http://www.openwall.com/lists/oss-security/2023/09/06/9 - () http://www.openwall.com/lists/oss-security/2023/09/06/9 -
References () https://docs.oracle.com/en/java/javase/13/security/java-api-xml-processing-jaxp-security-guide.html#GUID-94ABC0EE-9DC8-44F0-84AD-47ADD5340477 - Third Party Advisory () https://docs.oracle.com/en/java/javase/13/security/java-api-xml-processing-jaxp-security-guide.html#GUID-94ABC0EE-9DC8-44F0-84AD-47ADD5340477 - Third Party Advisory
References () https://gitbox.apache.org/repos/asf?p=ant-ivy.git;a=commit;h=2be17bc18b0e1d4123007d579e43ba1a4b6fab3d - Vendor Advisory () https://gitbox.apache.org/repos/asf?p=ant-ivy.git;a=commit;h=2be17bc18b0e1d4123007d579e43ba1a4b6fab3d - Vendor Advisory
References () https://lists.apache.org/thread/1dj60hg5nr36kjr4p1100dwjrqookps8 - Mailing List, Vendor Advisory () https://lists.apache.org/thread/1dj60hg5nr36kjr4p1100dwjrqookps8 - Mailing List, Vendor Advisory
References () https://lists.apache.org/thread/9gcz4xrsn8c7o9gb377xfzvkb8jltffr - Mailing List, Vendor Advisory () https://lists.apache.org/thread/9gcz4xrsn8c7o9gb377xfzvkb8jltffr - Mailing List, Vendor Advisory

Information

Published : 2023-08-21 07:15

Updated : 2026-11-10 12:10


NVD link : CVE-2022-46751

Mitre link : CVE-2022-46751

CVE.ORG link : CVE-2022-46751


JSON object : View

Products Affected

apache

  • ivy
CWE
CWE-91

XML Injection (aka Blind XPath Injection)

CWE-611

Improper Restriction of XML External Entity Reference