Arbitrary Class Instantiation via XML Feature Generator Descriptor and Format Name in Apache OpenNLP Versions
Affects apache-opennlpSource GCVE Database
Not known to be exploited · CVSS 5.6 Medium.
Data as of 24 Nov 2026, 20:49 UTC
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 24 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10apache-opennlppkg:deb/ubuntu/apache-opennlp?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSapache-opennlppkg:deb/ubuntu/apache-opennlp?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSapache-opennlppkg:deb/ubuntu/apache-opennlp?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSapache-opennlppkg:deb/ubuntu/apache-opennlp?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSapache-opennlppkg:deb/ubuntu/apache-opennlp?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Apache OpenNLP to version 2.5.10 or later, or 3.0.0-M5 or later, where the vulnerability is fixed by enforcing a package-prefix allowlist for class loading. If immediate upgrade is not possible, ensure all model files and format names come from trusted sources and audit the classpath to remove or control classes with side-effecting static initializers or constructors. For deployments loading classes outside the opennlp.* package, explicitly register allowed packages via ExtensionLoader.registerAllowedPackage() or the OPENNLP_EXT_ALLOWED_PACKAGES system property.
Description
Apache OpenNLP versions before 2.5.10 and before 3.0.0-M5 contain a vulnerability where arbitrary classes can be instantiated via XML feature generator descriptors and format names. This occurs because certain code paths load classes by name without validation, allowing an attacker supplying crafted model archives or untrusted format names to control class instantiation. Exploitation requires the presence of attacker-useful classes on the classpath and is not direct remote code execution. The issue is fixed by restricting class loading to an allowlist of package prefixes.
References
- ubuntu.com/security/CVE-2026-63317 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-63317 (opens in a new tab)
- lists.apache.org/thread/myr446n8t3gv8gq8wbpxm41olx16d8yj (opens in a new tab)
- issues.apache.org/jira/browse/OPENNLP-1890 (opens in a new tab)
- openwall.com/lists/oss-security/2026/07/24/7 (opens in a new tab)