CVEBrief

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.

Exploited in the wild
Not in CISA KEV
KEV 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
Exploit odds (EPSS)
0.72% in 30 days
higher than 55% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

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?

VendorProductAffectedFixed or not affected from
Apache Software FoundationApache OpenNLP org.apache.opennlp:opennlp-toolsfrom 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?

EcosystemPackageAffectedFixed inAdvisory
Mavenorg.apache.opennlp:opennlp-tools>= 2.0.0, < 2.5.92.5.9GHSA-cx4m-2p55-rw7j
Mavenorg.apache.opennlp:opennlp-tools>= 3.0.0-M1, < 3.0.0-M33.0.0-M3GHSA-cx4m-2p55-rw7j
Mavenorg.apache.opennlp:opennlp-tools< 1.9.51.9.5GHSA-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?

VendorProductVersionsType
apacheopennlpbefore 2.5.9application
apacheopennlp3.0.0application

NVD analysis (status Modified), last modified October 26, 2026, 19:10 UTC.

How severe is CVE-2026-42027?

ScoreVersionVectorSource
Critical 9.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP
High 7.5CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:Hredhat-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?

Where are the vendor advisories and references?

Who found and reported it?

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?

Every CVE in Apache OpenNLP

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.