Read the docs
TI-2026-29367 Aliases CVE-2026-40682GHSA-4v8g-86x5-3vrc

Apache OpenNLP: XXE via Dictionary Parsing in DictionaryEntryPersistor

Priority MEDIUM 48CWE-611Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · None
Fix status
Partial Red Hat: 2 fixed, 1 without a fix

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat.

Summary

XML External Entity (XXE) via Unsanitized Dictionary Parsing in Apache OpenNLP DictionaryEntryPersistor Versions Affected: before 2.5.9, before 3.0.0-M3 Description: The DictionaryEntryPersistor class initializes a static SAXParserFactory at class-load time without enabling FEATURE_SECURE_PROCESSING or disabling DTD processing. When create(InputStream, EntryInserter) is invoked, the only feature set on the XMLReader is namespace support — external entity resolution and DOCTYPE declarations remain fully enabled. An attacker who can supply a crafted dictionary file (e.g., a stop-word list or domain dictionary) containing a malicious DOCTYPE declaration can trigger local file disclosure via file:// entity references or server-side request forgery via http:// entity references during SAX parsing, before the application processes a single dictionary entry. This is inconsistent with the project's own XmlUtil.createSaxParser() helper, which correctly sets FEATURE_SECURE_PROCESSING and disallow-doctype-decl and is used by all other XML parsing paths in the codebase. The public Dictionary(InputStream) constructor delegates directly to this method and is the documented API for loading user-supplied dictionaries, making untrusted input a realistic scenario. Mitigation: 2.x users should upgrade to 2.5.9. 3.x users should upgrade to 3.0.0-M3. Users who cannot upgrade immediately should ensure that all dictionary files are sourced from trusted origins and should consider wrapping the Dictionary(InputStream) constructor with input validation that rejects any XML containing a DOCTYPE declaration before it reaches the parser.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00495 42nd percentileScored 2026-11-07
Fix Partial Apache OpenNLP (Apache Software Foundation): 2.5.9, 3.0.0-M3, 1.9.5org.apache.opennlp:opennlp-tools (Maven): 2.5.9, 3.0.0-M3, 1.9.5Red Hat: 2 advisoriesRed Hat: 2 fixed, 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ApacheApache OpenNLP2.0 to before 2.5.9; 3.0.0-M1 to before 3.0.0-M3; before 1.9.52.5.9, 3.0.0-M3, 1.9.5Patch availableCNA
—org.apache.opennlp:opennlp-tools (Maven)2.0.0 to before 2.5.92.5.9Patch availableGHSA-4v8g-86x5-3vrc
—org.apache.opennlp:opennlp-tools (Maven)3.0.0-M1 to before 3.0.0-M33.0.0-M3Patch availableGHSA-4v8g-86x5-3vrc
—org.apache.opennlp:opennlp-tools (Maven)before 1.9.51.9.5Patch availableGHSA-4v8g-86x5-3vrc
  • Apache OpenNLP VendorApache Affected 2.0 to before 2.5.9; 3.0.0-M1 to before 3.0.0-M3; before 1.9.5 Fixed in 2.5.9, 3.0.0-M3, 1.9.5 Patch available CNA
  • org.apache.opennlp:opennlp-tools (Maven) Vendor— Affected 2.0.0 to before 2.5.9 Fixed in 2.5.9 Patch available GHSA-4v8g-86x5-3vrc
  • org.apache.opennlp:opennlp-tools (Maven) Vendor— Affected 3.0.0-M1 to before 3.0.0-M3 Fixed in 3.0.0-M3 Patch available GHSA-4v8g-86x5-3vrc
  • org.apache.opennlp:opennlp-tools (Maven) Vendor— Affected before 1.9.5 Fixed in 1.9.5 Patch available GHSA-4v8g-86x5-3vrc

CPE configurations NVD · 3

CPEVersionsRoleVendor
cpe:2.3:a:apache:opennlp:*:*:*:*:*:*:*:*before 2.5.9VulnerableApache
cpe:2.3:a:apache:opennlp:3.0.0:m1:*:*:*:*:*:*3.0.0 m1VulnerableApache
cpe:2.3:a:apache:opennlp:3.0.0:m2:*:*:*:*:*:*3.0.0 m2VulnerableApache
  • cpe:2.3:a:apache:opennlp:*:*:*:*:*:*:*:* Versions before 2.5.9 Vulnerable ·Apache
  • cpe:2.3:a:apache:opennlp:3.0.0:m1:*:*:*:*:*:* Versions 3.0.0 m1 Vulnerable ·Apache
  • cpe:2.3:a:apache:opennlp:3.0.0:m2:*:*:*:*:*:* Versions 3.0.0 m2 Vulnerable ·Apache

Remediation

  • Fix · CNA Apache OpenNLP (Apache Software Foundation) Fixed in 2.5.9, 3.0.0-M3, 1.9.5
  • Fix · GHSA-4v8g-86x5-3vrc org.apache.opennlp:opennlp-tools (Maven) Fixed in 2.5.9 Advisory →
  • Fix · GHSA-4v8g-86x5-3vrc org.apache.opennlp:opennlp-tools (Maven) Fixed in 3.0.0-M3 Advisory →
  • Fix · GHSA-4v8g-86x5-3vrc org.apache.opennlp:opennlp-tools (Maven) Fixed in 1.9.5 Advisory →

Red Hat 2 advisories

  • RHSA-2026:87410 Released 2026-10-21 · Red Hat rating Critical
    RHOAI 2.25.12 - Red Hat OpenShift AI
    • Red Hat OpenShift AI 2.25 registry.redhat.io/rhoai/odh-built-in-detector-rhel9, registry.redhat.io/rhoai/odh-caikit-nlp-rhel9, registry.redhat.io/rhoai/odh-codeflare-operator-rhel9 +47
  • RHSA-2026:84734 Released 2026-10-19 · Red Hat rating Critical
    RHOAI 3.4.5 - Red Hat OpenShift AI
    • Red Hat OpenShift AI 3.4 registry.redhat.io/rhoai/odh-ai-gateway-payload-processing-rhel9, registry.redhat.io/rhoai/odh-automl-rhel9, registry.redhat.io/rhoai/odh-autorag-rhel9 +47

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    Apache OpenNLP 1.9.5, 2.5.9, 3.0.0-M3

    3 records Highest priority Priority MEDIUM 3 MEDIUM

    Other records, highest priority first

    • TI-2026-30407 Apache OpenNLP: Arbitrary Class Instantiation via Model Manifest in ExtensionLoaderPriority MEDIUM 50
    • TI-2026-30730 Apache OpenNLP: OOM DoS via Unbounded Array Allocation in AbstractModelReaderPriority MEDIUM 40

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat OpenShift AI (RHOAI)AffectedNo fix planned: Will not fix
Red Hat OpenShift AI 2.25Fixed RHSA-2026:87410
Red Hat OpenShift AI 3.4Fixed RHSA-2026:84734
Not affected: 7 products
  • Red Hat Data Grid 8
  • Red Hat Fuse 7
  • Red Hat JBoss Enterprise Application Platform 8
  • Red Hat JBoss Enterprise Application Platform Expansion Pack
  • Red Hat OpenShift AI 2.25
  • Red Hat OpenShift AI 3.4
  • Red Hat build of Apache Camel for Spring Boot 4

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-40682
  2. 2026-10-03 Alias added: GHSA-4v8g-86x5-3vrc
  3. 2026-10-20 Fix available: RHSA-2026:84734 · Red Hat
  4. 2026-10-20 Fix available: Red Hat OpenShift AI 3.4 · Red Hat
  5. 2026-10-22 Fix available: RHSA-2026:87410 · Red Hat
  6. 2026-10-23 Fix available: Red Hat OpenShift AI 2.25 · Red Hat
  7. 2026-10-25 EPSS moved to the below the 50th percentile

References

  • TI-2026-31914 Apache OpenNLP :: Core :: ML :: LibSVM: Unsafe Java Deserialization in SvmDoccatModel CVSS 3.1HIGH 7.3
  • TI-2026-56958 Apache OpenNLP, Apache OpenNLP: ReDoS / stack exhaustion in RegexNameFinderFactory built-in EMAIL and URL patterns CVSS 4.0CRITICAL 10.0
  • TI-2026-30407 Apache OpenNLP: Arbitrary Class Instantiation via Model Manifest in ExtensionLoader CVSS 3.1CRITICAL 9.8
  • TI-2017-09345 XML external entity injection in Apache OpenNLP CVSS 3.0CRITICAL 9.8
  • TI-2026-47528 Apache OpenNLP: OOM DoS via Unbounded Array Allocation in SymSpellModelSerializer CVSS 3.1HIGH 7.5
  • TI-2026-30730 Apache OpenNLP: OOM DoS via Unbounded Array Allocation in AbstractModelReader CVSS 3.1HIGH 7.5
See all 7 →

Sources