CVE-2026-42440Disclosure(apache / opennlp)

LOWCVSS 7.5 · HIGH

Signal is active with 2 mentions in latest observed window

Immediate actions

  • Track advisory updates for patch or workaround availability

Recommended action window: Monitor and triage in normal cycle

NVD description

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.

0.0/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-789CWE-770

Priority

LOW

Exploitation

NONE

PoC

NONE

Patch

NONE

Momentum

STABLE

Are you affected?

If you run products in this scope, you should treat this CVE as relevant to your environment.

  • opennlp

Threat summary

  • 3 mentions across 2 observed days
  • Momentum state: stable

What's happening

  • Technical details provided in 3 signals
  • Disclosure: 3 classified signals
  • Peaked at 2 mentions on most recent observed day (2026-05-04)
  • 3 total mentions across 2 days

Affected systems

Vendors
Products
opennlp

1 version affected across 1 product

Deep dive

Activity timeline3 mentions / 2d
01122Mentions · 2026-05-02: 1Mentions · 2026-05-04: 2Technical Details · 2026-05-02: 1Technical Details · 2026-05-04: 205-0205-04
Signal classification1 categories
Disclosure
3100.0%
Referenced assets5 URLs
Classification over time
DateTotalLabels
2026-05-021
Disclosure1
2026-05-042
Disclosure2
Full discourse3 posts
  • Open Source Security mailing list@oss_security
    Disclosure

    Apache OpenNLP CVE-2026-40682: XXE in DictionaryEntryPersistor https://www.openwall.com/lists/oss-security/2026/05/01/19 CVE-2026-42027: Arbitrary Class Instantiation in ExtensionLoader https://www.openwall.com/lists/oss-security/2026/05/01/20 CVE-2026-42440: OOM DoS in AbstractModelReader https://www.openwall.com/lists/oss-security/2026/05/01/21

    Post summary

    The text lists three newly disclosed CVEs in Apache OpenNLP, providing brief technical descriptions and links to security mailing list discussions.

    00022437
    4.7K followersView on X
  • Infoflowcloud@infoflowcloud
    Disclosure

    🚨*CVE* CVE-2026-42440 OOM Denial of Service via Unbounded Array Allocation in Apache OpenNLP AbstractModelReader  Versions Affected:  before 2.5.9 before 3.0.0-M3  Description: The A… https://www.cve.org/CVERecord?id=CVE-2026-42440 ----- Traducción: CVE-2026-42440 OOM … http://infoflow.cloud`

    Post summary

    The post identifies CVE‑2026‑42440 as an OOM denial‑of‑service bug in Apache OpenNLP’s AbstractModelReader, affects versions before 2.5.9 and 3.0.0‑M3, and links to the official CVE record.

    0000029
    75 followersView on X
  • CVE@CVEnew
    Disclosure

    CVE-2026-42440 OOM Denial of Service via Unbounded Array Allocation in Apache OpenNLP AbstractModelReader  Versions Affected:  before 2.5.9 before 3.0.0-M3  Description: The A… https://www.cve.org/CVERecord?id=CVE-2026-42440

    Post summary

    The text announces a denial‑of‑service vulnerability (CVE‑2026‑42440) in Apache OpenNLP, providing technical details but no evidence of exploitation, patches, or PoCs.

    00000142
    57.4K followersView on X
CPE platform detail3 entries

3 of 3 entries

PartVendorProductVersionTarget SWTarget HW
Appapacheopennlp---
Appapacheopennlp3.0.0--
Appapacheopennlp3.0.0--

Explore more