Home / Apache Software Foundation / Apache OpenNLP / CVE-2026-42027
CVE-2026-42027: is it exploited, and which versions of Apache Software Foundation Apache OpenNLP are affected and fixed?
CVE-2026-42027 is an unsafe reflection 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, 19:09 UTC). Affected: org.apache.opennlp:opennlp-tools from 2.0.0 before 2.5.9, org.apache.opennlp:opennlp-tools from 3.0.0-M1 before 3.0.0-M3 and org.apache.opennlp:opennlp-tools before 1.9.5 (GitHub advisory GHSA-cx4m-2p55-rw7j). Fixed in 2.5.9, 3.0.0-M3 and 1.9.5 (GitHub advisory GHSA-cx4m-2p55-rw7j). Severity: Critical (9.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 19:09 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-42027?
Apache OpenNLP: Arbitrary Class Instantiation via Model Manifest in ExtensionLoader
Arbitrary Class Instantiation via Model Manifest in Apache OpenNLP ExtensionLoader Versions Affected: before 1.9.5, before 2.5.9, before 3.0.0-M3 Description: The ExtensionLoader.instantiateExtension(Class, String) method loads a class by its fully-qualified name via Class.forName() and invokes its no-arg constructor, with the class name sourced from the manifest.properties entry of a model archive. The existing isAssignableFrom check correctly rejects classes that are not subtypes of the expected extension interface (BaseToolFactory for factory=, ArtifactSerializer for serializer-class-*), but the check runs after Class.forName() has already loaded and initialized the named class. Class.forName() with default initialization semantics executes the target class's static initializer before returning, so an attacker who can supply a crafted model archive can cause the static initializer of any class on the classpath to run during model loading, regardless of whether that class passes the subsequent type check. Exploitation requires a class with attacker-useful side effects in its static initializer (for example, JNDI lookup, outbound network I/O, or filesystem access) to be present on the classpath, so this is not a drop-in remote code execution; however, the attack surface grows as third-party model distribution becomes more common (community model repositories, Hugging Face-style sharing), where users routinely load model files from origins they do not control. A secondary, narrower vector affects deployments that ship legitimate BaseToolFactory or ArtifactSerializer subclasses with side-effecting no-arg constructors: a malicious manifest can name such a class and force its constructor to run during model load. Mitigation: * 2.x users should upgrade to 2.5.9. * 3.x users should upgrade to 3.0.0-M3. Note: The fix introduces a package-prefix allowlist that is consulted before Class.forName() is invoked, so the static initializer of a disallowed class is never executed. Classes under the opennlp. prefix remain permitted by default. Deployments that load models referencing factories or serializers outside opennlp.* must opt those packages in, either programmatically via ExtensionLoader.registerAllowedPackage(String) before the first model load, or by setting the OPENNLP_EXT_ALLOWED_PACKAGES system property to a comma-separated list of allowed package prefixes. Users who cannot upgrade immediately should ensure that all model files are sourced from trusted origins and should audit their classpath for classes with side-effecting static initializers or constructors, particularly any that perform JNDI lookups, network requests, or filesystem operations during class initialization.
From the CVE record by apache, last updated September 9, 2026, 12:04 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache OpenNLP org.apache.opennlp:opennlp-tools | from 2.0 before 2.5.9 from 3.0.0-M1 before 3.0.0-M3 before 1.9.5 | 2.5.9, 3.0.0-M3, 1.9.5 |
As the CVE record by apache states it, last updated September 9, 2026. 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 | >= 2.0.0, < 2.5.9 | 2.5.9 | GHSA-cx4m-2p55-rw7j |
| Maven | org.apache.opennlp:opennlp-tools | >= 3.0.0-M1, < 3.0.0-M3 | 3.0.0-M3 | GHSA-cx4m-2p55-rw7j |
| Maven | org.apache.opennlp:opennlp-tools | < 1.9.5 | 1.9.5 | GHSA-cx4m-2p55-rw7j |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 9, 2026. Summary: Apache OpenNLP ExtensionLoader Vulnerable to Arbitrary Class Instantiation via Model Manifest.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | opennlp | before 2.5.9 | application |
| apache | opennlp | 3.0.0 | application |
NVD analysis (status Modified), last modified October 26, 2026, 19:10 UTC.
How severe is CVE-2026-42027?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H | redhat-SADP |
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-2026-42027 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, May 5, 2026)
- EPSS
- 0.72% probability of exploitation activity in the next 30 days, percentile 55.2 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-470 Use of Externally-Controlled Input to Select Classes or Code
- CWE-502 Deserialization of Untrusted Data
Where are the vendor advisories and references?
- https://lists.apache.org/thread/ltlo4powjfc0w2w2yyl1o5tc7q1gcb2y vendor-advisory
- http://www.openwall.com/lists/oss-security/2026/05/01/20
- https://access.redhat.com/security/cve/CVE-2026-42027 vdb-entry, x_refsource_REDHAT
- RHBZ#2466527 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42027.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:65126 vendor-advisory, x_refsource_REDHAT
Who found and reported it?
- Subramanian S (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- April 23, 2026
- Published
- May 4, 2026, 16:43 UTC
- CVE record updated
- September 9, 2026, 12:04 UTC by apache
- NVD
- Modified, last modified October 26, 2026, 19:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 19:09 UTC; EPSS December 3, 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-42440 Apache Software Foundation Apache OpenNLP: memory Allocation with Excessive Size Value
- Oct 2, 2017CVE-2017-12620 Apache Software Foundation Apache OpenNLP: XML external entity (XXE)
Questions about CVE-2026-42027
Is CVE-2026-42027 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 19:09 UTC. FIRST's EPSS gives it a 0.72% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache OpenNLP are affected by CVE-2026-42027?
org.apache.opennlp:opennlp-tools from 2.0.0 before 2.5.9, org.apache.opennlp:opennlp-tools from 3.0.0-M1 before 3.0.0-M3 and org.apache.opennlp:opennlp-tools before 1.9.5, per the GitHub advisory GHSA-cx4m-2p55-rw7j. The tables above give every range the sources list.
Which version fixes CVE-2026-42027?
2.5.9, 3.0.0-M3 and 1.9.5, per the GitHub advisory GHSA-cx4m-2p55-rw7j. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-42027?
Critical (9.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2026-42027?
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.