Skip to main content
CVE-2026-63317VulnerabilityPublished Updated

Arbitrary Class Instantiation via XML Feature Generator Descriptor and Format Name in Apache OpenNLP Versions

Affects apache-opennlpSource GCVE Database

0
Compare
Authoritative record:CVE-2026-63317· Medium 5.6

Not known to be exploited · CVSS 5.6 Medium.

Data as of 24 Nov 2026, 20:49 UTC

CVSS 3.1 base score
5.6Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10apache-opennlppkg:deb/ubuntu/apache-opennlp?arch=source&distro=stonkingOther threatsAffected
  • =2.5.3-1build1
  • =2.5.9-1
Fixed in–
Ubuntu 26.04 LTSapache-opennlppkg:deb/ubuntu/apache-opennlp?arch=source&distro=resoluteOther threatsAffected
  • =2.5.3-1
  • =2.5.3-1build1
Fixed in–
Ubuntu 24.04 LTSapache-opennlppkg:deb/ubuntu/apache-opennlp?arch=source&distro=nobleOther threatsAffected
  • 2.3.0-1 – 2.3.2-1
4 affected builds
Fixed in–
Ubuntu 22.04 LTSapache-opennlppkg:deb/ubuntu/apache-opennlp?arch=source&distro=jammyOther threatsAffected
  • =1.9.3-1
  • =1.9.4-1
Fixed in–
Ubuntu 20.04 LTSapache-opennlppkg:deb/ubuntu/apache-opennlp?arch=source&distro=focalOther threatsAffected
  • =1.9.1-2
  • =1.9.2-1
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

Community reviews

Loading reviews…