CVE-2026-42027: Apache OpenNLP: Arbitrary Class Instantiation via Model Manifest in ExtensionLoader
This Apache advisory covers CVE-2026-42027 in Apache OpenNLP ExtensionLoader.
Am I affected by CVE-2026-42027?
You are affected if you run Apache OpenNLP ExtensionLoader at one of the versions below. If you do, upgrade to the fixed release listed for your version.
| Affected | Fixed in |
|---|---|
| Apache OpenNLP 2.0 before 2.5.9 | 2.5.9 |
| Apache OpenNLP 3.0.0-M1 before 3.0.0-M3 | 3.0.0-M3 |
| Apache OpenNLP before 1.9.5 | 1.9.5 |
Official advisory · high-confidence parse· fetched ·verify at source
Key facts
- Vendor rating
- Critical, CVSS 9.8
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H· base score 9.8, scored by CISA-ADPAttack vector: network. Attack complexity: low. Privileges required: none. User interaction: none. Scope: unchanged. Confidentiality impact: high. Integrity impact: high. Availability impact: high.- Weakness
- CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
- EPSS
- 0.72% chance of exploitation in the next 30 days (55th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: yes. Technical impact: total. CISA, .
- CISA KEV
- Not listed (catalogue checked )
- Source published
- Source revised
- Listed by VulniPulse
- Record changed
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
Description
Arbitrary Class Instantiation via Model Manifest in Apache OpenNLP ExtensionLoader
Versions Affected: before 1.9.5, before 2.5.9, before 3.0.0-M3
The ExtensionLoader.instantiateExtension(Class, String) method loads a class by its fully-qualified name via Class.forName() and invokes its no-arg constructor, with the class name sourced from the manifest.properties entry of a model archive.
The existing isAssignableFrom check correctly rejects classes that are not subtypes of the expected extension interface (BaseToolFactory for factory=, ArtifactSerializer for serializer-class-*), but the check runs after Class.forName() has already loaded and initialized the named class.
Class.forName() with default initialization semantics executes the target class's static initializer before returning, so an attacker who can supply a crafted model archive can cause the static initializer of any class on the classpath to run during model loading, regardless of whether that class passes the subsequent type check.
Text from the source record.
How to fix CVE-2026-42027
Upgrade to the first fixed release for your version, shown in the table above.
Vendor guidance
- Users who cannot upgrade immediately should ensure that all model files are sourced from trusted origins and should audit their classpath for classes with side-effecting static initializers or constructors, particularly any that perform JNDI lookups, network requests, or filesystem operations during class initialization.
CVE-2026-42027 in other vendors' advisories
- Red Hat: CVE-2026-42027, high severity
CVE-2026-42027 questions
Is CVE-2026-42027 being exploited?
CISA does not list it in its Known Exploited Vulnerabilities catalog (checked ), and the Apache advisory does not report exploitation. That is not proof it is unexploited.
Am I affected by CVE-2026-42027?
You are affected if you run Apache OpenNLP ExtensionLoader at one of the versions below. If you do, upgrade to the fixed release listed for your version. The table above lists each version.
How do I fix CVE-2026-42027?
Upgrade to a fixed release Apache lists for your version: 2.5.9, 3.0.0-M3, 1.9.5. The advisory's own guidance is above.
How likely is CVE-2026-42027 to be exploited?
FIRST's EPSS model gives it a 0.72% chance of exploitation in the next 30 days (55th percentile among scored CVEs, model date ). It is a forecast, not a report of attacks.
How serious is CVE-2026-42027?
Apache rates it critical, CVSS 9.8 out of 10.
More Apache Software Foundation advisories
CVE-2026-137442Dec 3, 2026Apache OFBiz: Direct Request in Order Confirmation EmailCVE-2026-136829Dec 3, 2026Apache OFBiz: Use of Non-Canonical URL Paths in Password-Reset SessionsCVE-2026-136828Dec 3, 2026Apache OFBiz: Authorization Bypass Through User-Controlled Key in Work Effort AssociationsCVE-2026-136827Dec 3, 2026Apache OFBiz: Direct Request in Manufacturing Production Run ServicesCVE-2026-136826Dec 3, 2026Apache OFBiz: Direct Request in Order Requirement ServicesCVE-2026-136820Dec 3, 2026Apache OFBiz: Direct Request in Customer Request Services
Apache Software Foundation advisories, May 2026All Apache Software Foundation advisories
Get an email when Apache publishes the next one.
See Apache's last 90 days first. Live alerts for one product are free for life; every vendor is US$10 a month with Pro (first month US$5).