GHSA-2jc4-r94c-rp7h

Suggest an improvement
Source
https://github.com/advisories/GHSA-2jc4-r94c-rp7h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/08/GHSA-2jc4-r94c-rp7h/GHSA-2jc4-r94c-rp7h.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-2jc4-r94c-rp7h
Aliases
Related
Published
2023-08-21T09:30:21Z
Modified
2024-09-30T14:19:23.376404Z
Severity
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L CVSS Calculator
  • 8.8 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
Apache Ivy External Entity Reference vulnerability
Details

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

Database specific
{
    "nvd_published_at": "2023-08-21T07:15:33Z",
    "cwe_ids": [
        "CWE-611"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-08-21T20:39:45Z"
}
References

Affected packages

Maven / org.apache.ivy:ivy

Package

Name
org.apache.ivy:ivy
View open source insights on deps.dev
Purl
pkg:maven/org.apache.ivy/ivy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.5.2

Affected versions

2.*

2.0.0-beta1
2.0.0-beta2
2.0.0-rc1
2.0.0-rc2
2.0.0
2.1.0-rc1
2.1.0-rc2
2.1.0
2.2.0-rc1
2.2.0
2.3.0-rc1
2.3.0-rc2
2.3.0
2.4.0-rc1
2.4.0
2.5.0-rc1
2.5.0
2.5.1