WaratekVRT Sign in

CVE-2017-12620 Apache OpenNLP

Affected softwareApache OpenNLP
Severity9.8 Critical CVSS 3.0 2 scores
Fixed in1.8.2
WeaknessXML external entity (XXE) (CWE-611)
Published3 Oct 2017
Updated17 Jun 2026

Description

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 9 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 3.0% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full XXE
  • Action available security rule
  • Review automated Inferred
  • Record active
Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR xxe security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-611: XML External Entity Reference.

How to mitigate CVE-2017-12620

Upgrade Apache OpenNLP to 1.8.2 or later. Until you can, Waratek RASP blocks exploitation with its XXE rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.8 CRITICAL v3.0 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.0 9.8 CRITICAL CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 7.5 none AV:N/AC:L/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.opennlp:opennlp-tools 1.5.0 1.8.2 unbounded

Products and versions

2 products, 11 version entries
SourceVendorProductSchemeAffected versions
nvd apache opennlp generic 1.5.0 · 1.5.1 · 1.5.2 · 1.5.3 · 1.6.0 · 1.7.0 · 1.7.1 · 1.7.2 · 1.8.0 · 1.8.1
osv org.apache.opennlp opennlp-tools generic ≥ 1.5.0 and < 1.8.2

References

URLTags
http://opennlp.apache.org/news/cve-2017-12620.html WEB

Timeline

Published2017-10-03By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.