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-63317

published medium CVSS 3.1 · 5.6

Apache OpenNLP: Arbitrary Class Instantiation in GeneratorFactory via Feature Descriptor XML

Published
24 Jul 2026, 08:07:57 UTC
Updated
24 Jul 2026, 18:04:05 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Apache Software Foundation — org.apache.opennlp:opennlp-toolsApache OpenNLP · 3.0.0-M1 to < 3.0.0-M4 · 0 to < 2.5.11 · Other versions: unaffected Affected Not stated apache
SUSE / openSUSE openSUSE-Tumbleweed opennlpaarch64 Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlpppc64le Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlps390x Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlpx86_64 Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-morfologik-addonaarch64 Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-morfologik-addonppc64le Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-morfologik-addons390x Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
Show 9 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed opennlp-morfologik-addonx86_64 Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-toolsaarch64 Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-toolsppc64le Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-toolss390x Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-toolsx86_64 Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-uimaaarch64 Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-uimappc64le Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-uimas390x Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1
SUSE / openSUSE openSUSE-Tumbleweed opennlp-uimax86_64 Advisory build 1.9.5-2.1 OPENSUSE-SU-2026:11369-1

Description

Arbitrary Class Instantiation via XML Feature Generator Descriptor and Format Name in Apache OpenNLP Versions Affected: - before 2.5.10 - before 3.0.0-M5 Description: Three code paths in Apache OpenNLP load a class by its fully-qualified name via Class.forName() and invoke its no-arg constructor without any prior validation of the class name or its type.  The affected paths are: (1) GeneratorFactory, which reads the class attribute of generator elements in an XML feature generator descriptor; such descriptors are embedded as artifacts in model archives (e.g. TokenNameFinder and POSTagger models) and are parsed during model loading, so an attacker who can supply a crafted model archive controls the class name directly. (2) StreamFactoryRegistry.getFactory(Class, String), which falls back to interpreting an unregistered format name as the fully-qualified class name of an ObjectStreamFactory; this is exploitable in applications that pass untrusted format names (e.g. exposing the -format parameter of the command-line tooling to external input). (3) StringInterners, which instantiates the interner implementation named by the opennlp.interner.class system property; this value is normally deployer-controlled, so it is hardened as defense in depth rather than being independently attacker-reachable. Exploitation requires a class with attacker-useful side effects in its static initializer or no-arg constructor (JNDI lookup, outbound network I/O, filesystem access) to be present on the classpath, so this is not drop-in remote code execution. T Mitigation: Upgrade to a fixed release. The fix routes all three paths through ExtensionLoader.instantiateExtension(...), which consults a package-prefix allowlist before Class.forName() is invoked, so a disallowed class is never loaded, initialized, or constructed. Classes under the opennlp. prefix remain permitted by default. Deployments that load models referencing feature generator factories, object stream factories, or string interners 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 all model files and format names are sourced from trusted origins and should audit their classpath for classes with side-effecting static initializers or constructors.

en · apache · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

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

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 3.0.0-M1 to < 3.0.0-M4 (affected · semver)0 to < 2.5.11 (affected · semver)Default: unaffected apache · cna

Weaknesses

1
  • CWE-470 CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (apache · cna)

References

2

Provider assertions

3

apache · cna

Apache OpenNLP: Arbitrary Class Instantiation in GeneratorFactory via Feature Descriptor XML

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
9da742c1e1c2fa17c6a85e864a45d637d7e1a6dc3af1b091293767ab8ab16757
Ingested
23 Sep 2026, 09:25:23 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