CVE-2026-63317
Apache OpenNLP: Arbitrary Class Instantiation in GeneratorFactory via Feature Descriptor XML
Mitigation
- Upgrade Apache OpenNLP to 2.5.11 or later.
Who should check
- Anyone running Apache Software Foundation Apache OpenNLP >= 3.0.0-M1, < 3.0.0-M4; < 2.5.11
Vulnerability facts
- Affected
- Apache Software Foundation Apache OpenNLP >= 3.0.0-M1, < 3.0.0-M4; < 2.5.11
- Fixed in
- Apache Software Foundation Apache OpenNLP 3.0.0-M4, Apache Software Foundation Apache OpenNLP 2.5.11
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.6 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: Low
- EPSS
- 0.85% chance of exploitation in 30 days (percentile 56, 2026-11-26)
- CWE
- CWE-470
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Apache Software Foundation Apache OpenNLP | >= 3.0.0-M1, < 3.0.0-M4; < 2.5.11 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-63317. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-63317.md Affected: Apache Software Foundation Apache OpenNLP >= 3.0.0-M1, < 3.0.0-M4; < 2.5.11 Fixed in: Apache Software Foundation Apache OpenNLP 3.0.0-M4, Apache Software Foundation Apache OpenNLP 2.5.11 Steps: 1. Search this machine and project for Apache Software Foundation Apache OpenNLP: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-63317 being exploited?
There is no confirmed exploitation: CVE-2026-63317 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.85% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-63317?
Medium: CVSS 5.6 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-63317?
Apache Software Foundation Apache OpenNLP >= 3.0.0-M1, < 3.0.0-M4; < 2.5.11.
Is there a fix for CVE-2026-63317?
Yes. Fixed in Apache Software Foundation Apache OpenNLP 3.0.0-M4, Apache Software Foundation Apache OpenNLP 2.5.11. Upgrade Apache OpenNLP to 2.5.11 or later.
How do I check if I'm affected by CVE-2026-63317?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.