cve.bz

CVE-2026-63317 apache opennlp: Reflection Injection

5.6 mediumEPSS 0.9%

Medium (5.6) in apache opennlp. EPSS 0.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.6 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-470 Use of Externally-Controlled Input to Select Classes or Code (Reflection Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-63317 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-63317?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-63317?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-63317 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-63317

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-63317](https://cve.bz/cve/badge/CVE-2026-63317.svg)](https://cve.bz/cve/CVE-2026-63317)

HTML:

<a href="https://cve.bz/cve/CVE-2026-63317"><img src="https://cve.bz/cve/badge/CVE-2026-63317.svg" alt="CVE-2026-63317"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache OpenNLPfrom 3.0.0-M1 before 3.0.0-M4
Apache Software Foundation Apache OpenNLPbefore 2.5.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13apache-opennlpno fix listedDEBIAN-CVE-2026-63317
Debian14apache-opennlp2.5.12-1DEBIAN-CVE-2026-63317
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 2 moreapache-opennlpno fix listedUBUNTU-CVE-2026-63317
openSUSETumbleweedopennlp1.9.5-2.1openSUSE-SU-2026:11369-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat products ship Apache OpenNLP opennlp-tools as a transitive dependency. The vulnerability allows arbitrary class instantiation via crafted XML feature generator descriptors in model archives, but exploitation requires both a malicious model file and a gadget class on the classpath. Red Hat OpenShift AI (TrustyAI) bundles opennlp-tools but only uses TokenizerModel and SentenceModel for text tokenization — these model types do not contain XML feature generator descriptors and do not invoke the vulnerable GeneratorFactory code path. EAP XP bundles opennlp-tools via Apache Lucene, where the vulnerable code path is reachable through POS tagger and NER model loading, but model files are administrator-configured and not user-supplied.

Red Hat's mitigation

Exploitation requires an attacker to supply a crafted OpenNLP model archive (containing a malicious XML feature generator descriptor) or an untrusted format name, so the risk can be reduced by ensuring that all model files and format names are sourced only from trusted origins, by not exposing the -format parameter of the OpenNLP command-line tooling to external input, and by auditing the application classpath for classes whose static initializers or no-arg constructors perform side-effecting operations such as JNDI lookups, outbound network I/O, or filesystem access. These measures do not remove the vulnerable code path; upgrading to a release that includes the upstream fix, which enforces a package-prefix allowlist before any class is loaded, is the complete remediation.

ProductPackageStateAdvisory
Red Hat JBoss Enterprise Application Platform Expansion Packlucene-analysis-opennlpFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packlucene-analyzers-opennlpFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packopennlp-toolsFix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-trustyai-service-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-63317.

Attack patterns (CAPEC)

  • CAPEC-138 Reflection Injection Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON