Home / Apache Software Foundation / Apache OpenNLP / CVE-2017-12620
CVE-2017-12620: is it exploited, and which versions of Apache Software Foundation Apache OpenNLP are affected and fixed?
CVE-2017-12620 is a XML external entity (XXE) vulnerability in Apache Software Foundation Apache OpenNLP. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:38 UTC). Affected: org.apache.opennlp:opennlp-tools from 1.5.0 before 1.8.2 (GitHub advisory GHSA-h22x-hm8g-rxpg). Fixed in 1.8.2 (GitHub advisory GHSA-h22x-hm8g-rxpg). Severity: Critical (9.8, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:38 UTC, CVE record November 19, 2026, 07:18 UTC and NVD November 19, 2026, 08:38 UTC.
What is CVE-2017-12620?
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.
From the CVE record by apache, last updated September 16, 2024, 19:15 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache OpenNLP | 1.5.0 to 1.5.3 1.6.0 1.7.0 to 1.7.2 1.8.0 to 1.8.1 |
As the CVE record by apache states it, last updated September 16, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.apache.opennlp:opennlp-tools | >= 1.5.0, < 1.8.2 | 1.8.2 | GHSA-h22x-hm8g-rxpg |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 1, 2022. Summary: Improper Restriction of XML External Entity Reference in Apache OpenNLP.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | opennlp | 1.5.0 | application |
| apache | opennlp | 1.5.1 | application |
| apache | opennlp | 1.5.2 | application |
| apache | opennlp | 1.5.3 | application |
| apache | opennlp | 1.6.0 | application |
| apache | opennlp | 1.7.0 | application |
| apache | opennlp | 1.7.1 | application |
| apache | opennlp | 1.7.2 | application |
| apache | opennlp | 1.8.0 | application |
| apache | opennlp | 1.8.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 01:03 UTC.
How severe is CVE-2017-12620?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2017-12620 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 3.04% probability of exploitation activity in the next 30 days, percentile 87.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-611 Improper Restriction of XML External Entity Reference
Where are the vendor advisories and references?
- http://opennlp.apache.org/news/cve-2017-12620.html x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- August 7, 2017
- Published
- October 2, 2017, 14:00 UTC
- CVE record updated
- September 16, 2024, 19:15 UTC by apache
- NVD
- Modified, last modified June 17, 2026, 01:03 UTC
- Last checked
- CVE list November 19, 2026, 07:18 UTC; NVD November 19, 2026, 08:38 UTC; KEV December 3, 2026, 08:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache OpenNLP?
- Nov 19, 2026CVE-2026-120404 Apache Software Foundation Apache OpenNLP: regular expression denial of service (ReDoS)
- Sep 11, 2026CVE-2026-82617 Apache Software Foundation Apache OpenNLP: regular expression denial of service (ReDoS)
- Sep 11, 2026CVE-2026-67211 Apache Software Foundation Apache OpenNLP: memory Allocation with Excessive Size Value
- Jul 24, 2026CVE-2026-63317 Apache Software Foundation Apache OpenNLP: unsafe reflection
- May 4, 2026CVE-2026-40682 Apache Software Foundation Apache OpenNLP: XML external entity (XXE)
- May 4, 2026CVE-2026-42027 Apache Software Foundation Apache OpenNLP: unsafe reflection
- May 4, 2026CVE-2026-42440 Apache Software Foundation Apache OpenNLP: memory Allocation with Excessive Size Value
Questions about CVE-2017-12620
Is CVE-2017-12620 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:38 UTC. FIRST's EPSS gives it a 3.04% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Apache Software Foundation Apache OpenNLP are affected by CVE-2017-12620?
org.apache.opennlp:opennlp-tools from 1.5.0 before 1.8.2, per the GitHub advisory GHSA-h22x-hm8g-rxpg. The tables above give every range the sources list.
Which version fixes CVE-2017-12620?
1.8.2, per the GitHub advisory GHSA-h22x-hm8g-rxpg. Check the vendor's advisory before you rely on it.
How severe is CVE-2017-12620?
Critical (9.8, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2017-12620?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.