Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-42027

published critical CVSS 3.1 · 9.8

Apache OpenNLP: Arbitrary Class Instantiation via Model Manifest in ExtensionLoader

Published
04 May 2026, 16:43:12 UTC
Updated
09 Sep 2026, 12:04:43 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Apache Software Foundation — org.apache.opennlp:opennlp-toolsApache OpenNLP · 2.0 to < 2.5.9 · 3.0.0-M1 to < 3.0.0-M3 · 0 to < 1.9.5 · Other versions: unaffected Affected Not stated apache
Red Hat — rhoai/odh-trustyai-service-rhel9Red Hat OpenShift AI 2.25 · 1788198681 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — opennlp-toolsRed Hat build of Apache Camel for Spring Boot 4 Unaffected Not required redhat-SADP
Red Hat — opennlp-toolsRed Hat Data Grid 8 Unaffected Not required redhat-SADP
SUSE / openSUSE openSUSE-Tumbleweed opennlp-toolsaarch64 Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-toolsppc64le Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-toolss390x Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-toolsx86_64 Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
Show 17 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Red Hat — opennlp-toolsRed Hat Fuse 7 Affected Not stated redhat-SADP
Red Hat — opennlp-toolsRed Hat JBoss Enterprise Application Platform 8 Unaffected Not required redhat-SADP
Red Hat — opennlp-toolsRed Hat JBoss Enterprise Application Platform Expansion Pack Unaffected Not required redhat-SADP
Red Hat — rhoai/odh-trustyai-service-rhel8Red Hat OpenShift AI (RHOAI) Unaffected Not required redhat-SADP
Red Hat — rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9Red Hat OpenShift AI (RHOAI) Affected Not stated redhat-SADP
SUSE / openSUSE openSUSE-Tumbleweed opennlpaarch64 Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlpppc64le Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlps390x Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlpx86_64 Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-morfologik-addonaarch64 Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-morfologik-addonppc64le Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-morfologik-addons390x Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-morfologik-addonx86_64 Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-uimaaarch64 Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-uimappc64le Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-uimas390x Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-uimax86_64 Advisory build 1.9.5-1.1 OPENSUSE-SU-2026:11281-1

Description

Arbitrary Class Instantiation via Model Manifest in Apache OpenNLP ExtensionLoader Versions Affected: before 1.9.5, before 2.5.9, before 3.0.0-M3 Description:  The ExtensionLoader.instantiateExtension(Class, String) method loads a class by its fully-qualified name via Class.forName() and invokes its no-arg constructor, with the class name sourced from the manifest.properties entry of a model archive. The existing isAssignableFrom check correctly rejects classes that are not subtypes of the expected extension interface (BaseToolFactory for factory=, ArtifactSerializer for serializer-class-*), but the check runs after Class.forName() has already loaded and initialized the named class. Class.forName() with default initialization semantics executes the target class's static initializer before returning, so an attacker who can supply a crafted model archive can cause the static initializer of any class on the classpath to run during model loading, regardless of whether that class passes the subsequent type check. Exploitation requires a class with attacker-useful side effects in its static initializer (for example, JNDI lookup, outbound network I/O, or filesystem access) to be present on the classpath, so this is not a drop-in remote code execution; however, the attack surface grows as third-party model distribution becomes more common (community model repositories, Hugging Face-style sharing), where users routinely load model files from origins they do not control. A secondary, narrower vector affects deployments that ship legitimate BaseToolFactory or ArtifactSerializer subclasses with side-effecting no-arg constructors: a malicious manifest can name such a class and force its constructor to run during model load. Mitigation:  * 2.x users should upgrade to 2.5.9. * 3.x users should upgrade to 3.0.0-M3. Note: The fix introduces a package-prefix allowlist that is consulted before Class.forName() is invoked, so the static initializer of a disallowed class is never executed. Classes under the opennlp. prefix remain permitted by default. Deployments that load models referencing factories or serializers outside opennlp.* must opt those packages in, either programmatically via ExtensionLoader.registerAllowedPackage(String) before the first model load, or by setting the OPENNLP_EXT_ALLOWED_PACKAGES system property to a comma-separated list of allowed package prefixes. Users who cannot upgrade immediately should ensure that all model files are sourced from trusted origins and should audit their classpath for classes with side-effecting static initializers or constructors, particularly any that perform JNDI lookups, network requests, or filesystem operations during class initialization.

en · apache · cna

en · redhat-SADP · adp

A flaw was found in Apache OpenNLP. An attacker, by providing a specially crafted model archive, can exploit a vulnerability in the ExtensionLoader component. This allows the attacker to force the system to load and initialize any class present on the classpath, executing its static initializer. While not direct remote code execution, this could lead to unintended actions such as network communication or file system operations, depending on the classes available in the environment.

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
CISA-ADP · adp
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.5 high redhat-SADP · adp CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Apache Software Foundation Apache OpenNLP 2.0 to < 2.5.9 (affected · semver)3.0.0-M1 to < 3.0.0-M3 (affected · semver)0 to < 1.9.5 (affected · semver)Default: unaffected apache · cna
Red Hat Red Hat OpenShift AI 2.25 1788198681 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat build of Apache Camel for Spring Boot 4 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Data Grid 8 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Fuse 7 Default: affected redhat-SADP · adp
Red Hat Red Hat JBoss Enterprise Application Platform 8 Default: unaffected redhat-SADP · adp
Red Hat Red Hat JBoss Enterprise Application Platform Expansion Pack Default: unaffected redhat-SADP · adp
Red Hat Red Hat OpenShift AI (RHOAI) Default: unaffected redhat-SADP · adp
Red Hat Red Hat OpenShift AI (RHOAI) Default: affected redhat-SADP · adp

Weaknesses

2
  • CWE-470 CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (apache · cna)
  • CWE-502 Deserialization of Untrusted Data (redhat-SADP · adp)

References

6

Provider assertions

4

apache · cna

Apache OpenNLP: Arbitrary Class Instantiation via Model Manifest in ExtensionLoader

redhat-SADP · adp

Apache OpenNLP: Apache OpenNLP: Arbitrary Class Loading via Model Manifest

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
c4d308b30949e817e06f1463a3901b38d06b7d20824805dfe9767e5775314127
Ingested
23 Sep 2026, 09:14:00 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected