Skip to content
RedCVE

CVE-2026-82617Apache Opennlp regular expression denial of service (ReDoS)

ApachePublished:

CVSS score

10.0

Critical

CVSS 4.0 from apache.org

Exploit probability (EPSS)

0.77%

0.77% chance of exploitation in the next 30 days, higher than 56.5% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official description

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.

Source: NVD · CNA: security@apache.org

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Apache Opennlp and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Apache OpenNLP to 2.5.12, 3.0.0-M6 or later, on the branch you run.
  3. If you can't update right away

    Apply the workaround or mitigation in the vendor's advisory until you can update:

  4. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High

Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected products

Affected productsVersions
Apache Opennlp≥ 2.0.0, < 2.5.12 · 3.0.0
Apache Apache OpenNLP≥ 3.0.0-M1, < 3.0.0-M6 · ≥ 2.0.0, < 2.5.12

Weakness

  • CWE-1333 regular expression denial of service (ReDoS)

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-82617 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.8% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-82617?

CVE-2026-82617 has a CVSS 4.0 base score of 10.0 (critical).

Which versions are affected?

Apache Opennlp (≥ 2.0.0, < 2.5.12; 3.0.0), Apache Apache OpenNLP (≥ 3.0.0-M1, < 3.0.0-M6; ≥ 2.0.0, < 2.5.12)

Is there a patch for CVE-2026-82617?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.