Improper Restriction of XML External Entity Reference in Apache OpenNLP
Date: 2022-05
Affected: maven/org.apache.opennlp:opennlp-tools
Attack vector: other
Category: vulnerability-disclosure
Severity: Critical
CVE: CVE-2017-12620
CWE: CWE-611
CVSS: 9.8 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

When loading models or dictionaries that contain XML it is possible to perform an XXE attack, since Apache OpenNLP is a library, this only affects applications that load models or dictionaries from untrusted sources. The versions 1.5.0 to 1.5.3, 1.6.0, 1.7.0 to 1.7.2, 1.8.0 to 1.8.1 of Apache OpenNLP are affected.


Mitigations:

Architectural layers (MAESTRO):