Read the docs
TI-2026-56958 Aliases CVE-2026-82617GHSA-f3wj-w3qw-rw57

Apache OpenNLP, Apache OpenNLP: ReDoS / stack exhaustion in RegexNameFinderFactory built-in EMAIL and URL patterns

Priority MEDIUM 50CWE-1333Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-1333.

Summary

The two built-in name-finder patterns exposed by opennlp.tools.namefind.RegexNameFinderFactory - DEFAULT_REGEX_NAME_FINDER.EMAIL and DEFAULT_REGEX_NAME_FINDER.URL - contain ambiguous nested quantifiers. An application that obtains these finders through RegexNameFinderFactory.getDefaultRegexNameFinders(...) and then applies them to untrusted text through RegexNameFinder.find(String[]) or RegexNameFinder.find(String) can be driven into super-linear backtracking or into unbounded matcher recursion by a small crafted input. For the EMAIL pattern, a long run of local-part characters that is never followed by an @ forces the matcher to re-scan to end-of-input from every starting offset. Cost grows quadratically with input length: an input of approximately 32 KB consumes several seconds of CPU in a single find() call and returns no match, and each doubling of the input multiplies the cost roughly four-fold. For the URL pattern, the query-string sub-expression nests a capturing repetition inside an outer repetition. The JDK matcher recurses once per query token, so an input of approximately 4 KB containing many &-separated tokens exhausts the thread stack and causes java.lang.StackOverflowError to propagate out of find(), terminating the calling thread. On a thread created with a smaller stack (for example -Xss512k, typical of server worker pools) approximately 1 KB is sufficient. In both cases an attacker who can supply text for analysis can convert a single request into seconds to minutes of pinned CPU, or into an abrupt thread death, denying service to the embedding application. No authentication, special configuration, or model file is required beyond the application having selected one of the two built-in finders. This issue affects Apache OpenNLP: from 2.0.0 through 2.5.11; from 3.0.0-M1 through 3.0.0-M5. Users are recommended to upgrade to version 2.5.12, or to 3.0.0-M6 for users tracking the 3.0.0 milestone line, which fix the issue.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00767 55th percentileScored 2026-11-07
Fix Fixed Apache OpenNLP (Apache Software Foundation): 3.0.0-M6, 2.5.12

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 OpenNLP3.0.0-M1 to before 3.0.0-M63.0.0-M6Patch availableCNA
ApacheApache OpenNLP2.0.0 to before 2.5.122.5.12Patch availableCNA
  • Apache OpenNLP VendorApache Affected 3.0.0-M1 to before 3.0.0-M6 Fixed in 3.0.0-M6 Patch available CNA
  • Apache OpenNLP VendorApache Affected 2.0.0 to before 2.5.12 Fixed in 2.5.12 Patch available CNA

CPE configurations NVD · 6

CPEVersionsRoleVendor
cpe:2.3:a:apache:opennlp:*:*:*:*:*:*:*:*2.0.0 to before 2.5.12VulnerableApache
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:3.0.0:m3:*:*:*:*:*:*3.0.0 m3VulnerableApache
cpe:2.3:a:apache:opennlp:3.0.0:m4:*:*:*:*:*:*3.0.0 m4VulnerableApache
cpe:2.3:a:apache:opennlp:3.0.0:m5:*:*:*:*:*:*3.0.0 m5VulnerableApache
  • cpe:2.3:a:apache:opennlp:*:*:*:*:*:*:*:* Versions 2.0.0 to before 2.5.12 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
  • cpe:2.3:a:apache:opennlp:3.0.0:m3:*:*:*:*:*:* Versions 3.0.0 m3 Vulnerable ·Apache
  • cpe:2.3:a:apache:opennlp:3.0.0:m4:*:*:*:*:*:* Versions 3.0.0 m4 Vulnerable ·Apache
  • cpe:2.3:a:apache:opennlp:3.0.0:m5:*:*:*:*:*:* Versions 3.0.0 m5 Vulnerable ·Apache

Remediation

  • Fix · CNA Apache OpenNLP (Apache Software Foundation) Fixed in 3.0.0-M6
  • Fix · CNA Apache OpenNLP (Apache Software Foundation) Fixed in 2.5.12

Fixed in the same release

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

  • Release ·

    Apache OpenNLP 3.0.0-M6

    2 records Highest priority Priority MEDIUM 2 MEDIUM

    Other records, highest priority first

    • TI-2026-47528 Apache OpenNLP: OOM DoS via Unbounded Array Allocation in SymSpellModelSerializerPriority MEDIUM 40

Vendor assessments

Red Hat

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

Not affected: 2 products
  • Red Hat Fuse 7
  • Red Hat OpenShift AI (RHOAI)

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-82617
  2. 2026-10-03 Alias added: GHSA-f3wj-w3qw-rw57
  3. 2026-10-16 Affected versions changed · Red Hat
  4. 2026-10-16 CVSS score added · Red Hat

References

  • TI-2026-31914 Apache OpenNLP :: Core :: ML :: LibSVM: Unsafe Java Deserialization in SvmDoccatModel CVSS 3.1HIGH 7.3
  • TI-2026-30407 Apache OpenNLP: Arbitrary Class Instantiation via Model Manifest in ExtensionLoader CVSS 3.1CRITICAL 9.8
  • TI-2026-29367 Apache OpenNLP: XXE via Dictionary Parsing in DictionaryEntryPersistor CVSS 3.1CRITICAL 9.1
  • 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