CVEBrief

Home / Apache Software Foundation / Apache OpenNLP / CVE-2026-42440

CVE-2026-42440: is it exploited, and which versions of Apache Software Foundation Apache OpenNLP are affected and fixed?

CVE-2026-42440 is a memory Allocation with Excessive Size Value 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, 11:38 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-659w-93r5-9j6m). Fixed in 2.5.9, 3.0.0-M3 and 1.9.5 (GitHub advisory GHSA-659w-93r5-9j6m). Severity: High (7.5, CVSS 3.1, from CISA-ADP).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 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, 11:38 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-659w-93r5-9j6m
Fixed in
2.5.9, 3.0.0-M3 and 1.9.5
GitHub advisory GHSA-659w-93r5-9j6m
Severity
High 7.5
CVSS 3.1 from CISA-ADP
Exploit odds (EPSS)
0.61% in 30 days
higher than 51% of CVEs; FIRST, December 2, 2026

What is CVE-2026-42440?

Apache OpenNLP: OOM DoS via Unbounded Array Allocation in AbstractModelReader

OOM Denial of Service via Unbounded Array Allocation in Apache OpenNLP AbstractModelReader  Versions Affected:  before 1.9.5 before 2.5.9 before 3.0.0-M3  Description: The AbstractModelReader methods getOutcomes(), getOutcomePatterns(), and getPredicates() each read a 32-bit signed integer count field from a binary model stream and pass that value directly to an array allocation (new String[numOutcomes], new int[numOCTypes][], new String[NUM_PREDS]) without validating that the value is non-negative or within a reasonable bound. The count is therefore fully attacker-controlled when the model file originates from an untrusted source. A crafted .bin model file in which any of these count fields is set to Integer.MAX_VALUE (or any value large enough to exhaust the available heap) triggers an OutOfMemoryError at the array allocation itself, before the corresponding label or pattern data is consumed from the stream. The error occurs very early in deserialization: for a GIS model, getOutcomes() is reached after only the model-type string, the correction constant, and the correction parameter have been read; so the attacker pays no meaningful size cost to weaponize a payload, and a single small file can crash a JVM that loads it. Any code path that deserializes a .bin model is affected, including direct use of GenericModelReader and any higher-level component that delegates to it during model load. The practical impact is denial of service against processes that load model files from untrusted or semi-trusted origins.   Mitigation: * 2.x users should upgrade to 2.5.9. * 3.x users should upgrade to 3.0.0-M3. Note: The fix introduces an upper bound on each of the three count fields, checked before array allocation; counts that are negative or exceed the bound cause an IllegalArgumentException to be thrown and the read to fail fast with no large allocation. The default bound is 10,000,000, which is well above the entry counts of legitimate OpenNLP models but far below any value that would threaten heap exhaustion. Deployments that legitimately need to load models with more entries than the default can raise the limit at JVM startup by setting the OPENNLP_MAX_ENTRIES system property to the desired positive integer (e.g. -DOPENNLP_MAX_ENTRIES=50000000); invalid or non-positive values fall back to the default. Users who cannot upgrade immediately should treat all .bin model files as untrusted input unless their provenance is verified, and should avoid loading models supplied by end users or fetched from third-party repositories without integrity checks.

From the CVE record by apache, last updated July 30, 2026, 12:05 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 July 30, 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-659w-93r5-9j6m
Mavenorg.apache.opennlp:opennlp-tools>= 3.0.0-M1, < 3.0.0-M33.0.0-M3GHSA-659w-93r5-9j6m
Mavenorg.apache.opennlp:opennlp-tools< 1.9.51.9.5GHSA-659w-93r5-9j6m

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 4, 2026. Summary: Apache OpenNLP AbstractModelReader has an OOM Denial of Service via Unbounded Array Allocation.

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-42440?

ScoreVersionVectorSource
High 7.5CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HCISA-ADP
High 7.5CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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-42440 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, May 5, 2026)
EPSS
0.61% probability of exploitation activity in the next 30 days, percentile 50.8 (FIRST EPSS, scores of December 2, 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 27, 2026
Published
May 4, 2026, 16:40 UTC
CVE record updated
July 30, 2026, 12:05 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, 11:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect Apache OpenNLP?

Every CVE in Apache OpenNLP

Questions about CVE-2026-42440

Is CVE-2026-42440 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.61% 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-2026-42440?

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-659w-93r5-9j6m. The tables above give every range the sources list.

Which version fixes CVE-2026-42440?

2.5.9, 3.0.0-M3 and 1.9.5, per the GitHub advisory GHSA-659w-93r5-9j6m. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-42440?

High (7.5, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.

Where is the official record of CVE-2026-42440?

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.