CVE-2026-42027: Apache OpenNLP ExtensionLoader class instantiation via model manifest
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-42027
- Published
- Record updated
- Fixed in
- The source references a patch, a mitigation or a vendor advisory.
Summary
Apache OpenNLP's ExtensionLoader.instantiateExtension(Class, String) loads a class named in a model archive's manifest.properties via Class.forName() before its isAssignableFrom type check runs, so the target's static initializer executes even for rejected classes. Affected versions are before 1.9.5, before 2.5.9 and before 3.0.0-M3. Exploitation needs a side-effecting class already on the classpath, and a malicious manifest can also force side-effecting BaseToolFactory or ArtifactSerializer constructors to run during model load.
Mitigation
2.x users should upgrade to 2.5.9. 3.x users should upgrade to 3.0.0-M3. Users who cannot upgrade immediately should ensure all model files are sourced from trusted origins and audit their classpath for classes with side-effecting static initializers or constructors, particularly those performing JNDI lookups, network requests, or filesystem operations during class initialization.
Related items
- HighCVE-2026-128877: IBM Langflow OSS 1.0.0 through 1.13.0 agentic MCP endpoint uses an internal client to send requests to the server's own…Similar attack, NVD/CVE Database
- MediumCVE-2026-120038: IBM Langflow OSS credential exposure via attacker-controlled OpenAI base_urlSimilar attack, NVD/CVE Database
- MediumCVE-2026-136957: Sonatype Nexus Repository 3 HuggingFace proxy download token verification flawSimilar attack, NVD/CVE Database
- HighCVE-2026-142134 - Uncontrolled search path element in the workflow linting tools in AWS HealthOmics MCP ServerSimilar attack, AWS Security Bulletins
- HighCVE-2026-142134: AWS HealthOmics MCP Server uncontrolled search path in workflow linting toolsSimilar attack, NVD/CVE Database