MODERATE 6.4

CVE-2026-120404

Apache OpenNLP: Denial of service via inefficient regular expression in the coordinate name finder

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

Description

The built-in regular expression name finder for latitude and longitude coordinates uses a pattern that is vulnerable to excessive backtracking. An attacker who can supply text that an application analyzes with this name finder can cause high CPU consumption, leading to denial of service. Users are recommended to upgrade to version 2.5.13 or 3.0.0, which fix the issue.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.apache.opennlp » opennlp-runtimepreliminary
>= 3.0.0-M1, < 3.0.0
3.0.0
org.apache.opennlp » opennlp-toolspreliminary
>= 2.0.0, < 2.5.13
2.5.13

Blast radius

2affected artifacts
33affected versions
1,247dependent artifacts (est.)
26,713dependent versions

86% of the dependent artifacts (1,080) still pull an affected version in their latest release.

DepthDependent versions
Direct
1,517
2 hops
6,889
3 hops
10,855
4 hops
6,393
5 hops
962
6 hops
97

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.